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

An error is reported when accessing the health page of Springboot's 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. Add the maven dependency of the actuator
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

2. Add to the configuration file application.properties
## Unauthorized access
management.security.enabled=false

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326597988&siteId=291194637