今天启动项目,idea用springb 启动的,出现了错误
ERROR 2019-01-26 15:33:46 [restartedMain]
org.springframework.boot.SpringApplication:771 - Application startup failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean
with name 'documentionPluginsBootstrapper' defined in URL [jar:file:/E:/maven-
repository/io/springfox/springfox-spring-web/2.7.0/springfox-spring-web-
2.7.0.jar!/springfox/documentation/spring/web/plugins/DocumentationPlunsBootstrapper
.class]: Unsatisfied dependency expressed through constructor parameter 1; nested
exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'webMvRequeHandlerProvider' defined in URL
[jar:file:/E:/maven-repository/io/springfox/springfox-spring-web/2.7.0/springfox-
spring-web-
2.7.0.jar!/springfox/documentation/spring/web/plugins/WebMvcuestHandlerProvider.cla
ss]: Unsatisfied dependency expressed through constructor parameter 0; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'requestMingHandlerMapping' defined in class path resource
[org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration
$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception
is java.lang.IllegalStateException: Ambiguous mapping. Cannot map
网上说是jar包冲突,这样的话可以去maven配置查看是否有冲突的相等jar包,但是我这个我一想刚才还是可以启动的,我写了一个方法就报错了,全局搜索后发现原来是
@PostMapping(XXX)
重名了,重写方法名,完毕。