码迷,mamicode.com
首页 > 移动开发 > 详细

Spring异常Ambiguous mapping found.

时间:2015-04-13 11:12:05      阅读:152      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!