springboot-actuator监控的401无权限访问

在pom.xml里边添加

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

启动之后访问/beans.报401错误,无法访问,在网上找了一下,只需要在application.properties里边添加

management.security.enabled=false

就能正常访问了

留下做个记录,方便以后查找

posted on 2017-09-19 22:22  济世魔王  阅读(717)  评论(0编辑  收藏  举报

导航