问题描述
在我的Spring Boot 2.3.3.RELEASE
中,我想启用readiness
和liveness
端点。
但是IntelliJ将值标记为“无法解析配置属性”,并且无法访问端点(例如http:// localhost:8080 / actuator / health / readiness)
解决方法
该项目缺少对 <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
的琐碎依赖:
requests
添加后,IntelliJ停止抱怨并且可以访问端点。