Spring boot 如何在非spring安全spring boot项目中提供执行器安全性

Spring boot 如何在非spring安全spring boot项目中提供执行器安全性,spring-boot,spring-boot-actuator,Spring Boot,Spring Boot Actuator,当spring boot 1.5.4.RELEASE项目中没有spring安全模块依赖项时,如何为执行器端点启用安全性 我在application.properties中添加了以下值,但当我单击任何端点时,我会得到错误消息 There was an unexpected error (type=Forbidden, status=403). Access is denied. User must have one of the these roles: ACTUATOR security.us

当spring boot 1.5.4.RELEASE项目中没有spring安全模块依赖项时,如何为执行器端点启用安全性

我在application.properties中添加了以下值,但当我单击任何端点时,我会得到错误消息

There was an unexpected error (type=Forbidden, status=403).
Access is denied. User must have one of the these roles: ACTUATOR

security.user.password=admin
security.user.name=admin
security.user.role=ACTUATOR
management.security.roles=ACTUATOR

如何启用安全性?

只需删除值,即管理、安全、角色=