/actuator/health 等,404,配置好了死活不生效??
鏈接一直都是404什么都是404,多虧Stack Overflow拯救了我,真是個(gè)最香的網(wǎng)站!
原因就是配置了
server:
port: 58080
servlet:
context-path: /xxxxx
所yi,訪問/actuator/health 等接口,需要帶著xxxxx為/xxxxx/actuator/health。這么說大佬們應(yīng)該都懂
https://stackoverflow.com/questions/69852773/404-when-accessing-actuator-endpoint
大概就是訪問URL的時(shí)候需要帶上項(xiàng)目名稱。找了好好久。大概就只有我這么菜了吧,
浙公網(wǎng)安備 33010602011771號