今天心血来潮看一下spring监控
访问/beans 等敏感的信息时候报错:
Full authentication is required to access this resource
application.properties添加配置参数
management.security.enabled=false
Tips:应用端口和管理端口最好分开
# server port
server.port=7001
management.port=7002