您的位置:首页 > 编程语言 > Java开发

spring boot actuator 查看监控信息时报401错误 Full authentication is required to access this resource

2018-01-15 15:37 513 查看
使用Spring Boot的Actuator,查看监控信息,需要在pom.xml文件中添加

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

另外在application.properties文件中配置

management.port=9001
management.security.enabled=false


访问localhost:9001/beans即可看到json信息
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  spring boot actuator 401
相关文章推荐