onflicts with existing, non-compatible bean definition of same name and class

Posted 树上的疯子^

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了onflicts with existing, non-compatible bean definition of same name and class相关的知识,希望对你有一定的参考价值。

原因是因为项目有同名的controller

解决办法

在@Controller 中,使用重名名就可以了

@Controller("ocrRecord")
@RequestMapping("/acmp/2.0/ocrRecord")
@RestController
public class OcrRecordController 

以上是关于onflicts with existing, non-compatible bean definition of same name and class的主要内容,如果未能解决你的问题,请参考以下文章

Annotation-specified bean name 'userDaoImpl' for bean class [***] conflicts with existing, n

后台报错 No row with the given identifier exists

EXISTS 不适用于 WITH 子句中的子查询

No row with the given identifier exists

org.hibernate.ObjectNotFoundException: No row with the given identifier exists

No row with the given identifier exists