我必须检查我的服务/应用程序是否有效。
我添加了依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.6.2</version>
</dependency>
并且还尝试添加management.endpoint.health.show-details: always
,application.yml
但没有帮助。
我试图去http://localhost:8080/actuator/health
,http://localhost:8080/health
但它返回 404 错误。