Spring Boot Actuator监控页面报错解决
今天在访问Spring Boot Actuator监控页面的时候报错了,之前都没遇到这种情况,大概的意思就是无权限访问
<html><body><h1>Whitelabel Error Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Tue Nov 07 14:14:32 CST 2017</div><div>There was an unexpected error (type=Unauthorized, status=401).</div><div>Full authentication is required to access this resource.</div></body>
</html>
然后我看了下控制台,找到了有用的信息
说访问端点信息需要认证身份,请将management.security.enabled设置为false来关闭验证功能
2017-11-07 14:13:19.742 INFO 11232 --- [nio-2101-exec-1] s.b.a.e.m.MvcEndpointSecurityInterceptor : Full authentication is required to access actuator endpoints. Consider adding Spring Security or set 'management.security.enabled' to false.
解决方案当然就是在属性文件中加上management.security.enabled=false
啦
那么为什么会出现这种情况呢,我看了下源码,之前我用的spring boot是1.4.2版本的,源码里面是没有MvcEndpointSecurityInterceptor 这个拦截器的
目前用的spring boot是1.5.4,应该是新版本加进来的,这就是为什么之前没有遇到过这个问题
关于actuator的使用可以查询我的这篇文章:http://cxytiandi.com/blog/detail/8123
欢迎加入我的知识星球,一起交流技术,免费学习猿天地的课程(http://cxytiandi.com/course)
PS:目前星球中正在星主的带领下组队学习Sentinel,等你哦!
Spring Boot Actuator监控页面报错解决相关推荐
- 亲测有效:spring boot中parent节点报错解决办法
今天中午开始学习spring boot,结果一中午都卡在了pom.xml配置上.因为spring boot需要引入一个parent project, pom.xml文件中: <!-- Inher ...
- spring boot控制AD域 报错解决
问题描述 使用原生api可以查询到AD服务器上的信息,但是使用spring LDAP报错 javax.naming.PartialResultException: Unprocessed Contin ...
- spring boot 转xml格式报错解决方法_芋道 Spring Boot MyBatis 入门(一)之 MyBatis + XML...
摘要: 原创出处 http://www.iocoder.cn/Spring-Boot/MyBatis/「芋道源码」欢迎转载,保留摘要,谢谢! 1. 概述 2. MyBatis + XML 2.1 引入 ...
- Spring Boot下使用JPA报错:'hibernate.dialect' not set的解决办法
问题现象: Spring Boot下使用JPA报错:'hibernate.dialect' not set 原因是: 没有设置数据库方言导致的 解决方案: 1.如果配置文件格式为application ...
- 创建Spring boot项目运行出现报错: java: 无效的源发行版: 14
触发场景:创建Spring boot项目运行出现报错\ 首先在左边的项目中选择pom.xml文件 找到这行,把中间的版本改成自己下载的java版本 我的是1.8,改好后再点maven刷新即可
- spring boot整合SpringSecurity-03 自定义报错信息
spring boot整合SpringSecurity 目录 spring boot整合SpringSecurity-01入门 spring boot整合SpringSecurity-02 基于Ser ...
- spring boot actuator监控详细介绍一(超级详细)
spring boot actuator介绍 Spring Boot包含许多其他功能,可帮助您在将应用程序推送到生产环境时监视和管理应用程序. 您可以选择使用HTTP端点或JMX来管理和监视应用程序. ...
- (转)Spring Boot (十九):使用 Spring Boot Actuator 监控应用
http://www.ityouknow.com/springboot/2018/02/06/spring-boot-actuator.html 微服务的特点决定了功能模块的部署是分布式的,大部分功能 ...
- 使⽤用 Spring Boot Actuator 监控应⽤
1.美图 2.概述 微服务的特点决定了功能模块的部署是分布式的,⼤部分功能模块都是运行在不同的机器上,彼此通过服务调⽤进行交互,前后台的业务流会经过很多个微服务的处理和传递,出现异常如何快速定位便成为 ...
最新文章
- R可视化包ggplot2设置透明背景实战
- linux cache控制 内核,linux内核之bcache简介 [转]
- swift_027(Swift 的扩展)
- 2015#183;Fool#39;s Day#183;NND
- 如果再出恶性安全事件,滴滴会有人被追究刑责吗?
- 程序员必会的核心基础知识:1张导图+10本书
- 一起学习C语言:函数(三)
- linux如何安装php,Linux下如何安装配置PHP
- HDU 4558 剑侠情缘
- SSM框架及例子(转)
- 进程管理 systemctl控制
- 结构体构造函数_Go 语言的数据结构 :栈与队列
- 群体智能优化算法之烟花算法(Fireworks Algorithm,FWA)
- Java常量不能二次赋值与常量不能修改值意思一样吗?
- 阶段5 3.微服务项目【学成在线】_day03 CMS页面管理开发_12-删除页面-服务端-接口开发...
- 远程文件传输工具Filezilla
- python编写飞机大战小游戏+源码
- 全网最全-Java简历优化-专业技能
- poi导出excel报错Failed to read zip entry source
- MATLAB信号的带宽估计及求带宽(3dB,90%带宽)