Spring boot accesses sensitive endpoints such as autoconfig 401

Error message:

Tue Mar 07 21:18:57 GMT+08:00 2017
There was an unexpected error (type=Unauthorized, status=401).
Full authentication is required to access this resource.

Solution:
Add configuration parameter

management to application.properties .security.enabled=false



ID Description Sensitive
autoconfig Displays an auto-configuration report that shows all auto-configuration candidates and why they are applied or not applied true
beans Displays all Spring Beans in an application full list true
configprops displays a collated list of all @ConfigurationProperties true
dump performs a thread dump true
env exposes properties from Spring ConfigurableEnvironment true
health displays application health information (a simple 'status' when accessed using an unauthenticated connection , use the authentication connection to display all the information details) false
info Display any application information false
metrics Display the current application's 'metric' information true
mappings show a collated list of all @RequestMapping paths true
shutdown allows the application to shut down gracefully (not enabled by default) true
trace show trace information (defaults to the latest few HTTP requests) true

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326488210&siteId=291194637