Errorjava Annotation processing is not supported for module cycles. Please ensure that all modules

Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules

启动项目时,会报这样的错误,产生的原因是就是我依赖了你,同时你也依赖了我,这时候就回产生循环依赖问题
不允许module之间进行循环依赖
如下图:

image-20220903195617239

解决:
在pom.xml文件中删除其中一个依赖,然后重新启动,就可以了


Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [模块1,模块2,模块3] are excluded from annotation processing 异常

原因:
一个项目调用另一个项目的类时候要导入项目依赖
出现这个错误就是导入依赖时发生了"套娃"
其实导包的时候发生了循环依赖的情况
A包里导入了B包 同时 B包里又包含了A包

解决:
如果A依赖B,所以要删除B中的A依赖,留下A中的B依赖。

原文链接:https://blog.csdn.net/weixin_45265547/article/details/122478578

posted @   哩个啷个波  阅读(1152)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
点击右上角即可分享
微信分享提示