版权声明:转载请注明出处和署名,谢谢! https://blog.csdn.net/MobiusStrip/article/details/82774234
Health Indicator访问无结果
- 错误原因:
- 未导入依赖包
- 版本原因导致访问方式改变了
- 解决办法:
- 导入依赖包
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
- 访问http://localhost:8030/actuator查看
{ "_links": { "self": { "href": "http://localhost:8030/actuator", "templated": false }, "health": { "href": "http://localhost:8030/actuator/health", "templated": false }, "info": { "href": "http://localhost:8030/actuator/info", "templated": false } } }
- 访问http://localhost:8030/actuator/health即可