springboot-actuator 401 无权限

来源:互联网 发布:电脑软件分类管理 编辑:程序博客网 时间:2024/06/01 23:12

在使用springboot-actuator模块时,在 pom.xml 的dependency节点中,新增spring-boot-starter-actuator的依赖:

<dependency>     <groupid>org.springframework.boot</groupid>     <artifactid>spring-boot-starter-actuator</artifactid> </dependency> 

然后查看 /beans, /configprops等时总是报401无权限错误。
后来在application.properties添加配置

management.security.enabled=false

启动服务,正常。

原创粉丝点击