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 [WV-service,WV-databa
se,WV-core] are excluded from annotation processing

当运行代码报以上的错误时,说明你在项目的不同文件夹下循环引用了pom.xml。

解决方案

点击IDEA中的导航栏中的Code中的Analyze Code 找到Module Dependencies

 点击红色的(1),然后右键循环(2)中,点击打开(3)

 

 点击Depencies,选择另外一个报红的依赖,右键移除

posted @ 2023-03-28 15:54  萍2樱释  阅读(2048)  评论(0编辑  收藏  举报