部署jar包循环依赖

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

spring项目打完jar包需要部署服务器的时候报错,根据日志可得知属于循环依赖
部署jar包循环依赖The dependencies of some of the beans in the application context form a cycle

查看代码

部署jar包循环依赖The dependencies of some of the beans in the application context form a cycle
在我的A类中引入了B类的依赖(甚至还没有使用),同时在B类中也有A类的依赖引入

部署jar包循环依赖The dependencies of some of the beans in the application context form a cycle

猜测可能就是这个问题导致循环依赖的报错信息。

解决方法

将A类中引入的B类依赖删除,重新打包,问题解决

相关文章:

  • 2021-11-04
  • 2018-02-20
  • 2021-11-11
  • 2021-09-17
  • 2021-09-10
  • 2020-01-05
  • 2018-02-18
  • 2019-07-20
猜你喜欢
  • 2021-10-17
  • 2018-12-12
  • 2017-11-23
  • 2021-08-29
  • 2018-04-10
  • 2021-09-16
  • 2021-10-17
  • 2019-01-10
相关资源
相似解决方案