/actuator/health 等,404,配置好了死活不生效??

链接一直都是404什么都是404,多亏Stack Overflow拯救了我,真是个最香的网站!

原因就是配置了
server:
port: 58080
servlet:
context-path: /xxxxx
所yi,访问/actuator/health 等接口,需要带着xxxxx为/xxxxx/actuator/health。这么说大佬们应该都懂

https://stackoverflow.com/questions/69852773/404-when-accessing-actuator-endpoint
大概就是访问URL的时候需要带上项目名称。找了好好久。大概就只有我这么菜了吧,

posted on 2022-08-18 16:00  寄居の友人c  阅读(1911)  评论(0编辑  收藏  举报