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的主要内容,如果未能解决你的问题,请参考以下文章