Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource

 

问题描述:

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 'spuController' method .to {[/spu/{id}],methods=[GET]}: There is already 'spuController' bean method

 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 'spuController' method .to {[/spu/{id}],methods=[GET]}: There is already 'spuController' bean method

 

posted @ 2020-07-25 20:38  .个小目标  阅读(6673)  评论(0编辑  收藏  举报