fa在pom中添加起步依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
在application中配置
management.server.port=8100
management.server.servlet.context-path=/springboot
management.endpoints.web.exposure.include=*
http://localhost:8100/springboot/actuator/health
页面出现
{"status":"UP"}