Java Spring Boot Actuator 1.4.7-我的REST应用程序缺少运行状况端点(404)
我已经在我的Spring Boot应用程序中包括了Spring Actuator,但是健康端点不在那里/返回404。我可以得到许多其他执行器端点,并在Tomcat日志中看到它们Java Spring Boot Actuator 1.4.7-我的REST应用程序缺少运行状况端点(404),java,spring,spring-boot,spring-boot-actuator,Java,Spring,Spring Boot,Spring Boot Actuator,我已经在我的Spring Boot应用程序中包括了Spring Actuator,但是健康端点不在那里/返回404。我可以得到许多其他执行器端点,并在Tomcat日志中看到它们 EndpointHandlerMapping : Mapped "{[/autoconfig EndpointHandlerMapping : Mapped "{[/beans EndpointHandlerMapping : Mapped "{[/configprops
EndpointHandlerMapping : Mapped "{[/autoconfig
EndpointHandlerMapping : Mapped "{[/beans
EndpointHandlerMapping : Mapped "{[/configprops
EndpointHandlerMapping : Mapped "{[/dump
EndpointHandlerMapping : Mapped "{[/env
EndpointHandlerMapping : Mapped "{[/env/{name:.*}]
EndpointHandlerMapping : Mapped "{[/info
EndpointHandlerMapping : Mapped "{[/mappings
EndpointHandlerMapping : Mapped "{[/metrics
EndpointHandlerMapping : Mapped "{[/metrics//{name:.*}]
EndpointHandlerMapping : Mapped "{[/trace
下面是application.properties
spring.messages.encoding=UTF-8
# ----------------------------------------
# SECURITY PROPERTIES
# ----------------------------------------
# SECURITY (SecurityProperties)
security.basic.enabled=false
# ----------------------------------------
# ACTUATOR PROPERTIES
# ----------------------------------------
# ENDPOINTS (AbstractEndpoint subclasses)
endpoints.sensitive=false
endpoints.actuator.enabled=true
endpoints.health.sensitive=false
# MANAGEMENT HTTP SERVER (ManagementServerProperties)
management.security.enabled=false
有人知道什么会阻止创建/可用致动器运行状况终结点吗?在application.properties中尝试配置
endpoints.health.enabled=true
您可以通过此属性启用其他终结点:
management.endpoints.web.exposure.include=info, health, loggers, logfile, configprops
为了解决这个问题,我们的内部依赖关系之一是使用@RequestMapping注释触发DropWizard计时器的方面。出于某种原因,这破坏了健康端点(我认为还有其他一些Spring端点)。我在我们的域中添加了方面过滤器,一切都很好。