`

This application has no explicit mapping for /error, so you are seeing this as a

阅读更多
访问Springboot的actuator的健康页面报错

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Nov 03 11:38:21 GMT+08:00 2017
There was an unexpected error (type=Unauthorized, status=401).
Full authentication is required to access this resource.


1、加入actuator的maven依赖
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

2、配置文件application.properties中加入
## 无权限访问
management.security.enabled=false
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics