Error creating bean with name ‘documentationPluginsBootstrapper‘ defined in URL
问题Error creating bean with name ‘documentationPluginsBootstrapper’ defined in URL [jar:file:/D:/Environment/maven/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/spr
问题 Error creating bean with name ‘documentationPluginsBootstrapper’ defined in URL [jar:file:/D:/Environment/maven/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘webMvcRequestHandlerProvider’ defined in URL [jar:file:/D:/Environment/maven/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is 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 ‘jobResumeController’ method
com.yuanhua.controller.JobResumeController#deleteJobResume(Long, Integer)
to {POST [/resume/deleteJobResume]}: There is already ‘jobResumeController’ bean method
原因和解决
类中存在两个相同的请求地址,更改其中一个即可
更多推荐
所有评论(0)