多模块之间的循环依赖: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 @ 2024-01-17 17:15  先娶国王后取经  阅读(586)  评论(0编辑  收藏  举报