项目在启动时报如下Error错误的原因是:Maven项目中各模块module之间产生了循环依赖,因此在启动运行时就会产生循环依赖的问题,此时需要查看报错信息中显示对应模块的pom.xml,排查删除其中一个错误依赖后再重启即可。
我的报错信息如下:
java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [moni-server,moni-web] are excluded from annotation processing
如图所示:
(注:我是因为测试代码时按照idea提示乱导包 Maven自动添加的错误依赖而导致)
Thanks