继承了父MongodbBaseController后,每个子controller要独立声明RequestMapping,否则url冲突

2019-09-25 16:50:17:985 [restartedMain] ERROR org.springframework.boot.SpringApplication(SpringApplication.java 845) -Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL [jar:file:/D:/soft/maven-respository/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:/D:/soft/maven-respository/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 [com/vendingmachine/xmp/common/config/webmvc/WebMvcConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'cloudDeviceController' method

public com.vendingmachine.xmp.result.ResultView com.vendingmachine.xmp.controller.openApi.mobi.controller.CloudDeviceController.list(com.vendingmachine.xmp.controller.openApi.mobi.entity.CloudDevice)

to {[/list],methods=[POST],produces=[application/json]}: There is already 'schoolCardWXUserMessageController' bean method

继承了父MongodbBaseController后,每个子controller要独立声明RequestMapping,否则springmvc容器的映射路径会有重复

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 从上小学开始,父母就开始灌输给我们一个思想:每个人都是家里的一份子,所以家务都要分担。 于是从二年级...
    她们生活的世界阅读 3,017评论 0 0
  • 外界环境变了,期望变了。 心态和战术必须要紧随着改变。 攻城略地,能讲故事。
    鲈鱼鲈鱼阅读 1,603评论 0 0

友情链接更多精彩内容