Java 在我的例子中,为什么Spring Boot Actuator不显示/info、/Actuator端点?
每次我在询问Java 在我的例子中,为什么Spring Boot Actuator不显示/info、/Actuator端点?,java,spring,spring-boot,spring-boot-starter,Java,Spring,Spring Boot,Spring Boot Starter,每次我在询问localhost:60001/info、localhost:60001/exactor或其他信息时都会收到404错误 {"timestamp":1570711643410,"status":404,"error":"Not Found","message":"No message available","path":"/loginfo"} 它仅适用于localhost:60001/metrics和localhost:60001/health 在application.yml文件中
localhost:60001/info
、localhost:60001/exactor
或其他信息时都会收到404错误
{"timestamp":1570711643410,"status":404,"error":"Not Found","message":"No message available","path":"/loginfo"}
它仅适用于localhost:60001/metrics
和localhost:60001/health
在application.yml文件中,我添加了所有设置以启用所有可能的端点
management:
server:
port: 60001
security:
enabled: false
endpoint:
beans:
enabled: true
health:
show-details: ALWAYS
endpoints:
sensitive: true
web:
exposure:
include: *
PS:我还被问到,即使我将在application.yml中错误地编写管理设置,为什么JAR文件构建成功。例如,显示详细信息:一些不存在的东西
而不是显示详细信息:始终
我还添加了我在中看到的SecurityWebFilterChain
bean
我尝试了所有可能的localhost:60001/
链接,这些链接都是用本文编写的
PS:http://hostname:portnumber/applicationroot/actuator/health
,http://localhost:60001/loginfo
等。但它仍然不起作用
我使用Spring Boot 2.1.6:RELEASE无法在评论中发布 你能试试下面的yml吗,因为没有双引号的星号(*)在我的IDE中是无效的,可能你的问题也是一样的
management:
endpoints:
enabled-by-default: true
web:
exposure:
include:
- "*"
您使用的是哪个spring boot版本?@Shailesh我使用spring boot 2.1.6:Release谢谢您的回答。好的,我把它改成双引号。但仍然没有任何改变。请尝试我的示例执行器项目
management:
endpoints:
enabled-by-default: true
web:
exposure:
include:
- "*"