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

后端 未结 4 1400
[愿得一人]
[愿得一人] 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:49

    To have authorization to spring boot actuator endpoints you need to have ACTUATOR role. Refer this example Accessing Restricted Actuator Endpoints with Spring Security

提交回复
热议问题