报错信息:

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

原因如下:

 

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐