There is already ‘deptController‘ bean method
Posted 谦谦均
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了There is already ‘deptController‘ bean method相关的知识,希望对你有一定的参考价值。
记录一下学习spring框架踩的坑。
关于报错:There is already 'xxxController' bean method
的解决方法
There is already 'deptController' bean method
控制台消息如下所示
报这个错的原因是因为你controller
里的@GetMapping
中的路径有重复,回到自己的controller
层发现自己因为偷个懒,把上一个方法的GetMapping
路径给copy
过来了,修改一下即可
修改后正常运行。
以上是关于There is already ‘deptController‘ bean method的主要内容,如果未能解决你的问题,请参考以下文章
关于There is already xxx bean method报错的原因
EF There is already an open DataReader associated with this Command
There is already an object named ‘#xxxx‘ in the database.
There is a chart instance already initialized on the dom!警告
Caused by: java.lang.IllegalStateException: Ambiguou There is already ‘XXXXXXController‘ bean method
Echarts清空图表:There is a chart instance already initialized on the dom.