首页 > 移动平台 > 详细

Spring异常Ambiguous mapping found.

时间:2015-04-13 11:09:29      阅读:245      评论:0      收藏:0      [点我收藏+]

SpringMVC启动时不停重复加载bean
通过浏览器访问获取异常:Error creating bean with name ‘org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0‘: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping found. Cannot map ‘onlyOneRestController‘ bean method
重点截取:nested exception is java.lang.IllegalStateException: Ambiguous mapping found.

原因:Controller层同一请求

解决:查看报错地方,找出同一请求映射到两个方法的请求路径,修改后即可!

Spring异常Ambiguous mapping found.

原文:http://my.oschina.net/hava/blog/399394

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!