我有一个 Spring Boot 应用程序,其中包含 Spring Actuatorpom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
我的配置是这样的
management:
server:
port: 8200
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: always
metrics:
enabled: false
metrics:
tags:
application: ${my.application.name}
health:
jms:
enabled: false
但是,当我尝试使用 检查端点时localhost:8200/actuator
,我的浏览器显示
This site can’t be reached
localhost refused to connect.
在我的 IntelliJ IDEA 中,我可以看到执行器选项卡,它似乎在那里工作,但没有 URL 映射。有人可以帮忙吗?