Error creating bean with name ‘documentationPluginsBootstrapper’ defined in URL
由于controller中url重复引起的错误
·
4、Error creating bean with name ‘documentationPluginsBootstrapper’ defined in URL
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL [jar:file:/D:/Maven/warehouse/repository/io/springfox/springfox-spring-web/3.0.0/springfox-spring-web-3.0.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:/Maven/warehouse/repository/io/springfox/springfox-spring-webmvc/3.0.0/springfox-spring-webmvc-3.0.0.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
此错误的重点在这一句话:
Ambiguous mapping. Cannot map ‘userController’ method:模糊映射。不能映射“userController”方法
错误原因:
controller中有两个方法使用了同一个url路径
更多推荐
已为社区贡献2条内容
所有评论(0)