Spring boot 无法在弹簧启动应用中使用执行器

Spring boot 无法在弹簧启动应用中使用执行器,spring-boot,spring-boot-actuator,Spring Boot,Spring Boot Actuator,我们有一个启用了Spring安全性的Spring引导应用程序。无论何时我们试图击中/执行器/健康,我们都会得到 Whitelabel Error Page -There was an unexpected error (type=Not Found, status=404) 我们在application.properties中有以下内容 management.endpoints.web.exposure.include=health,info management.security.enabl

我们有一个启用了Spring安全性的Spring引导应用程序。无论何时我们试图击中/执行器/健康,我们都会得到

Whitelabel Error Page -There was an unexpected error (type=Not Found, status=404)
我们在application.properties中有以下内容

management.endpoints.web.exposure.include=health,info

management.security.enabled=false

management.security.roles=AMDIN

在pom.xml中


org.springframework.boot
.

我们还需要启用其他角色或功能吗?

您使用的是哪个spring引导版本。@M.Deinum它是1.5.2。答案中也更新了。然后应该是
/health
,除非您更改了端点的URL。@M.Deinum谢谢。它起作用了。。
<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.2.RELEASE</version>
    </parent>
<dependency>    
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>