多模块之间的循环依赖:java: Annotation processing is not supported for module cycles

问题描述

java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [BDCloud-business,BDCloud-admin] are excluded from annotation processing

 

 

本质:BDCloud-admin模块为主启动模块,其包含了BDCloud-business模块;但在编码过程中BDCloud-business模块无意导入了BDCloud-admin模块,这就导致了循环依赖

 

解决方法

  方法一(亲测有效):

    在BDCloud-business模块的pom.xml文件中删除BDCloud-admin依赖

    

  方法二(试了没有效果,但感觉该过程有点作用):

  

 

参考文章

【1】https://blog.csdn.net/qq_36743013/article/details/70326771

【2】https://blog.csdn.net/qq_52740173/article/details/134679754

posted @   先娶国王后取经  阅读(911)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示