idea maven install时出现: Compilation failure-xxx.程序包不存在问题

在这里插入图片描述

 
解决办法:
 
试过很多方法,都没有成功,因为我这个是同一个model里面两个类相互引用时出现这个错误,然后查看控制台提示:
 
[ERROR] After correcting the problems, you can resume the build with the command

由于项目是从传统的SSM架构的单体应用,向springboot项目微服务进行拆分,在拆分时,对有些类,没有被springboot启动类扫描到,
根据报错,我们需要在类上进行添加@Component,

发布了475 篇原创文章 · 获赞 16 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_32370913/article/details/105572731