springboot启动报错Error creating bean with name requestMappingHandlerMapping defined in class path resou

报错信息:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [com/huashang/config/WebMvcConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'projectController' method 
com.huashang.controller.ProjectController#ratify(int, Ratify)
to {PUT /projects/{id}/sign}: There is already 'projectController' bean method

看这篇的:

springboot启动报错Error creating bean with name requestMappingHandlerMapping defined in class path resou_初晨 、的博客-CSDN博客org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.classhttps://blog.csdn.net/qq_43563999/article/details/106448994

原因如下:

springboot启动报错Error creating bean with name requestMappingHandlerMapping defined in class path resou_第1张图片

 

你可能感兴趣的:(前端)