Error creating bean with name ‘requestMappingHandlerMapping‘
Posted ITdfq
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error creating bean with name ‘requestMappingHandlerMapping‘相关的知识,希望对你有一定的参考价值。
错误日志
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘VUsersController’ method
cn.bestduan.tsncvp.controller.VUsersController#insert(VUsers)
解决办法
由于两个路由想的相同报错,改为不一样的路由即可
以上是关于Error creating bean with name ‘requestMappingHandlerMapping‘的主要内容,如果未能解决你的问题,请参考以下文章
Error creating bean with name ‘requestMappingHandlerMapping‘
react(85)--error:Error creating bean with name ‘onlineStudyController‘:
Error creating bean with name 'eurekaAutoServiceRegistration'