首页 > 移动平台 > 详细

The dependencies of some of the beans in the application context form a cycle

时间:2020-11-10 14:22:49      阅读:36      评论:0      收藏:0      [点我收藏+]
Description:

The dependencies of some of the beans in the application context form a cycle:

┌─────┐
|  t1 defined in file [D:\yirui-supervisor\yirui-supervisor-web\target\classes\com\yirui\supervisor\service\construction\T1.class]
↑     ↓
|  t2 defined in file [D:\yirui-supervisor\yirui-supervisor-web\target\classes\com\yirui\supervisor\service\construction\T2.class]
└─────┘


Disconnected from the target VM, address: 127.0.0.1:58912, transport: socket

Process finished with exit code 1

spring循环依赖异常;两个类互相构造方法引用,改为set方式注入即可

The dependencies of some of the beans in the application context form a cycle

原文:https://www.cnblogs.com/qq376324789/p/13952894.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!