关于springboot-actuator监控的401无权限访问

来源:互联网 发布:解救吾先生知乎 编辑:程序博客网 时间:2024/06/01 09:22

今天心血来潮看一下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

原文