报错信息

org.springframework.beans.factory.BeanCreationException: Error creating bean with namerequestMappingHandlerMappingdefined in class path resource [com/huashang/config/WebMvcConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot mapprojectController’ 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

原因如下

 

原文地址:https://blog.csdn.net/m0_47010003/article/details/133175901

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_19781.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注