Spring Boot Actuator Endpoints security doesn't work with custom Spring Security Configuration

后端 未结 4 1424
[愿得一人]
[愿得一人] 2021-02-05 15:19

This is my Spring Boot 1.5.1 Actuator application.properties:

#Spring Boot Actuator
management.contextPath: /actuator
management.security.roles=R_0
         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-05 15:51

    You have to use prefix ROLE_ for your management.security.roles for example management.security.roles=ROLE_SOMENAME in order to solve this issue

提交回复
热议问题