springboot2.6版本因循环引用导致启动时报错的问题Relying upon circular references is discouraged and they are prohibite
报错信息:
Description:The dependencies of some of the beans in the application context form a cycle:┌──->──┐
| helloController (field private org.springframework.web.client.RestTemplate com.example.jcloudsonsumer.controller.HelloController.restTemplate)
└──<-──┘Action:Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
解决办法:
spring:main:#解决spring boot2.6因循环引用导致启动时报错allow-circular-references: true
springboot2.6版本因循环引用导致启动时报错的问题Relying upon circular references is discouraged and they are prohibite相关推荐
- Relying upon circular references is discouraged and they are prohibited by default.循环依赖bug解决
Relying upon circular references is discouraged and they are prohibited by default.循环依赖bug解决 bug展示 b ...
- Relying upon circular references is discouraged and they are prohibited by default 循环依赖bug解决
问题: 因为业务原因,将springboot升级到2.6.4,启动项目出现这样的bug Error starting ApplicationContext. To display the condit ...
- 使用RENREN-GENERATOR时遇到循环错误问题 Relying upon circular references is discouraged and they are prohibited
这是由于所使用的SPRING-BOOT版本较高缘故,若SPRING-BOOT版本大于2.6.x,就会出现该错误,此时只需要在application.yml文件作出如下改变: server:port: ...
- iPhone开发资料之内存管理 ,循环引用导致的内存问题
iPhone开发资料之内存管理 ,循环引用导致的内存问题 https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual ...
- [js] 举例说明Object.defineProperty会在什么情况下造成循环引用导致栈溢出?
[js] 举例说明Object.defineProperty会在什么情况下造成循环引用导致栈溢出? var data = {count: 1,value: 2 } Object.definePrope ...
- 操作系统MSXML组件版本过低,导致启动失败的原因
操作系统MSXML组件版本过低,导致启动失败的原因 开机出现此弹窗,电脑变得非常卡顿,什么都打不开操作不了,转圈圈无响应卡死.明明刚重装的系统,昨天还好好的,不会又要重装吧?到底是什么原因,非常想要弄 ...
- 解决win10开机后死机:您操作系统的MSXML组件版本过低,导致启动失败。请到微软官方网站升级该组件后重试。
系统版本 windows10专业版 电脑症状 开机后提示 您操作系统的MSXML组件版本过低,导致启动失败.请到微软官方网站升级该组件后重试. 并死机. 报错原因 可能是因为系统中装有讯飞输入法,从而 ...
- Log4j2 日志 依赖 jar包 缺失 导致启动报错 解决方法
Log4j2 日志 依赖 jar包 缺失 导致启动报错 解决方法. 一个Java老项目,更新了日志工具,升级为Log4j2,在引入log4j-api-2.14.0.jar 和log4j-core-2. ...
- weblogic部署启动时报错(weblogic.application.ModuleException)
weblogic部署启动时报错(weblogic.application.ModuleException),如下是详细错误: <2014-3-3 下午02时06分23秒 CST> < ...
最新文章
- 网站SEO优化工作主要包括哪些内容?
- 为什么不能在init和dealloc函数中使用accessor方法
- JS学习笔记:防止发生命名冲突
- leader选举的源码分析-quorumPeer.createElectionAlgorithm
- Secret Passwords CodeForces - 1263D(并查集)
- 推荐算法DeepFM原理介绍及tensorflow代码实现
- DB2 常用操作命令集合
- Vertx.vertx()初始框图和模块
- [AMPPZ2014]Petrol
- 所有关于php上传,关于php文件上传
- 一次搞定各种数据库 SQL 执行计划:MySQL、Oracle、SQL Server、PostgreSQL 以及 SQLite
- 仿网易严选微信小程序
- ssh pem登陆及pem是什么
- ab.exe压力测试
- 云原生爱好者周刊:mist.io 开源多云管理平台
- 基于HBase的大数据存储在京东的应用场景
- 查看获取别人的微信公众号二维码
- HTTP 和 DNS 原理概念了解 ;
- 电子科技大学公开课:数字信号处理
- JWT 生成Token、解析Token的简单工具类