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依赖
        
            org.springframework.boot
            spring-boot-starter-actuator
        

2、配置文件application.properties中加入
## 无权限访问
management.security.enabled=false

你可能感兴趣的:(springboot,Unauthorized,/error)