报错Error creating bean with name ‘documentationPluginsBootstrapper‘ defined in URL

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘documentationPluginsBootstrapper’ defined in URL [jar:file:/C:/Users/%e6%9c%b1%e5%ad%90%e6%9b%a6/.m2/repository/io/springfox/springfox-spring-web/2.9.2/springfox-spring-web-2.9.2.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:/C:/Users/%e6%9c%b1%e5%ad%90%e6%9b%a6/.m2/repository/io/springfox/springfox-spring-web/2.9.2/springfox-spring-web-2.9.2.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 1; 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 ‘studentController’ method ==

Ambiguous mapping:模糊不清的映射
说明接口路径写重复了!!!

修改路径就解决了
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_51293984/article/details/127897028