首页 > 其他分享 >pomRelying upon circular references is discouraged and they are prohibited by default.

pomRelying upon circular references is discouraged and they are prohibited by default.

时间:2023-07-24 22:33:20浏览次数:33  
标签:pomRelying 依赖 default spring upon 循环 references 引用 circular

 

方框的意思就是:

不鼓励依赖循环引用,并且默认情况下禁止循环引用。更新应用程序以删除bean之间的依赖循环。作为最后的手段,可以通过设置spring.main来自动打破这个循环。允许循环引用为true。

这是由于Spring Boot2.6版本之后关闭了依赖循环引用,从而导致了以上错误。

解决方法

可以在application.xml配置文件中的spring下添加配置来解决问题,即:

 

main:
#    解决升级Spring Boot2.6后,因依赖循环引用导致启动时报错的问题
    allow-circular-references: true

 

标签:pomRelying,依赖,default,spring,upon,循环,references,引用,circular
From: https://www.cnblogs.com/jiangzishun/p/17578549.html

相关文章

  • Creating network "docker_default" with the default driver ERROR: Failed to S
    创建网络"docker_default"withthedefaultdriverERROR:FailedtoS在使用Docker容器时,有时会遇到以下错误信息:Creatingnetwork"docker_default"withthedefaultdriverERROR:FailedtoS。这个错误通常表示Docker无法创建名为"docker_default"的网络。本文将解释此错......
  • C# default 和 typeof
    查看类型的内部结构:typeof获取类型的默认值:defaultvartemp01=typeof(decimal);//查看类型的内部结构vartemp02=default(decimal);//获取类型的默认值 (341条消息)C#运算操作符_穿越虚空的博客-CSDN博客 ......
  • jquery__WEBPACK_IMPORTED_MODULE_2___default(...)(...).combobox is not a func
    1、问题:使用jquery的combobox控件的时候出现了这个错误。$('#mySelect').combobox({width:200,data:comboboxData,valueField:'desc',textField:'text'});2、解决过程:我上网看了很多都说是因为jquery没有正确......
  • 【Azure App Service】Web Job 报错 UNC paths are not supported. Defaulting to Win
    问题描述PHP的WebJob,通过artisan来配置路径启动PHP任务,相关启动脚本如下:artisan_path="d:\\home\\site\\wwwroot";cd${artisan_path}echo"\n"pwdphpartisanschedule:run但是,在运行的时候遇见报错:[07/06/202301:57:31>0f21a2:INFO]/d/home/site/wwwroo......
  • export default 和 export之间的区别
    原文链接:点我......
  • pip3 Defaulting to user installation because normal site-packages is not writeab
    Defaultingtouserinstallationbecausenormalsite-packagesisnotwriteable原因:没有操作site-packages目录权限解决方法:命令前加上sudosudopip3installCommandNotFound......
  • gitlab--needs、default
    needs并行阶段可无序执行作业,无需按照阶段顺序运行某些作业,可以让多个阶段同时运行例如下面的ci文件stages:-build-test-deploymodule-a-build:stage:buildscript:-echo"hello3a"-sleep10module-b-build:stage:buildscrip......
  • IDEA:MAVEN:先:An illegal reflective access operation has occurred 后:Cannot access d
    maven打包发现出现以下警告,但是可以运行 通过在 VM选项中添加 --illegal-access=deny--add-opensjava.base/java.lang=ALL-UNNAMED 不再出现刚才提示。之后出现CannotaccessdefaultsfieldofProperties发现自己新创建的项目,没有配置相应插件就使用了。添加即可......
  • 六月学习之Haproxy default配置
    4、Haproxydefault配置defaults段用于为所有其他配置段提供默认参数4.1、option参数httplogoptionhttplog:用来记录日志,其通常包括但不限于HTTP请求、连接计时器、会话状态、连接数、捕获的首部及cookie、"frontend"、"backend"等信息。dontlognulloptiondontlognull:不记录......
  • What are the phases of the maven default lifecycle?
    Thephasesofthedefault(build)mavenSWlifecyclearelistedathttp://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.Ihavelistedthemagainhere:MavenDefaultLifecyclePhasesvalidategenerate-sourcesprocess-sourcesgenerate-reso......