在我的Spring Boot 2.3.3.RELEASE
中,我尝试启用readiness
和liveness
端点。
我在yml文件中添加了以下内容:
但IntelliJ将这些值标记为“无法解析配置属性”,并且端点不可访问(例如http://localhost:8080/actuator/health/readiness)
发布于 2020-08-27 14:18:21
项目缺少actuator
的微不足道的依赖项
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
在添加它之后,IntelliJ停止了抱怨,端点可以访问。
https://stackoverflow.com/questions/63597965
复制相似问题