码上敲享录 > IntelliJ IDEA常见问题分享 > springboot公共模块的文件迁移到其他模块后,idea启动其他模块时conflicts with existing, non-compatible bean definition of same

springboot公共模块的文件迁移到其他模块后,idea启动其他模块时conflicts with existing, non-compatible bean definition of same

上一章章节目录下一章 2021-01-07已有1015人阅读 评论(0)

springboot公共模块的文件迁移到其他模块后,idea启动其他模块时conflicts with existing, non-compatible bean definition of same name and class


解决方法:

我的项目时gradle项目不是maven项目,使用idea把项目打成war部署到tomcat启动不报错。但使用idea直接执行Application类时就报conflicts with existing, non-compatible bean definition of same name and class。

后来我直接再把迁移的文件复制回公共模块,然后把这个文件名改掉再删除发现其他模块可以正常引用公共模块了。


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交