Error:java: Annotation processing is not supported for module cycles.异常解决

        有一段时间没碰Springboot,想起用到它的时候还是在去年…

        由于要开始准备毕设了,所以最近开始部署Springboot的项目,结果在启动的时候,报了以下异常:

Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [dao,domain] are excluded from annotation processing

        大致意思就是说我dao模块和domain模块的依赖设置错了…

        于是我打开dao和domain的pom文件。

domain的pom.xml
在这里插入图片描述

dao的pom.xml
在这里插入图片描述

        果不其然,两个模块设置成相互依赖,类似死循环

        解决方案也很简单,把其中的一个依赖删了即可…或者单独依赖一个其他模块~

在这里插入图片描述

发布了184 篇原创文章 · 获赞 1443 · 访问量 40万+

猜你喜欢

转载自blog.csdn.net/weixin_44318830/article/details/104166278