美文网首页
springboot配置health接口

springboot配置health接口

作者: 舒尔诚 | 来源:发表于2019-05-02 12:03 被阅读0次

1,引入actuator

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2,application.properties 配置

management.endpoint.health.show-details=always

但是访问必须加上actuator,不知为什么
http://localhost:8180/actuator/health

相关文章

网友评论

      本文标题:springboot配置health接口

      本文链接:https://www.haomeiwen.com/subject/liknnqtx.html