项目启动报错Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name

项目启动报错Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name

nankui
2022-01-20 / 0 评论 / 1,437 阅读 / 正在检测是否收录...

方法名重名 修改下。。。。。。。。。。。。

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-01-20 16:36:32.533 [main] ERROR org.springframework.boot.SpringApplication:837 - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL [jar:file:/D:/apache-maven-3.8.3-bin/apache-maven-3.8.3/Repository/io/springfox/springfox-spring-web/2.10.5/springfox-spring-web-2.10.5.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:/apache-maven-3.8.3-bin/apache-maven-3.8.3/Repository/io/springfox/springfox-spring-webmvc/2.10.5/springfox-spring-webmvc-2.10.5.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 2; 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 'cxDogMoonJihuaController' method
org.jeecg.modules.psdog.dog.controller.CxDogMoonJihuaController#xiaLaList(String, String)
to {GET /dog/cxDogMoonJihua/xiaLaList}: There is already 'cxDogMoonJihuaController' bean method

2

评论 (0)

取消