ERROR o.s.b.SpringApplication - [reportFailure,870] - Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.ruoyi.RuoYiApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'tbUserController' for bean class [com.ruoyi.client.controller.TbUserController] conflicts with existing, non-compatible bean definition of same name and class [com.ruoyi.web.controller.system.TbUserController]
![](https://img-blog.csdnimg.cn/img_convert/5439613e102dfb01fe69bebceb39863d.png)
一、 类名重复
不同模块 使用了相同类名 导致类重名,需要修改类名或者给类起个别名
![](https://img-blog.csdnimg.cn/img_convert/f06ab7b84010d363d3943fd30cd33cea.png)
![](https://img-blog.csdnimg.cn/img_convert/2921b1b334414aeb178a1eef7e3d0617.png)
二、类的映射地址重复
查看是否是从其他模块拷贝过来的文件 如果是,则可能是映射名称重名导致的:
修改拷贝过来的文件映射名称
![](https://img-blog.csdnimg.cn/img_convert/bcbfbb209fccba5016783cdb2495330b.png)
maven - clean
上面修改映射路径修改之后,右侧Maven管理 - 项目根目录 - Lifecycle - clean 鼠标双击运行
![](https://img-blog.csdnimg.cn/img_convert/103c3c242d81b18643a21e812d55e902.png)