springboot配置health接口

2019-05-02  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读