SSM框架整合中遇到重复的问题Ambiguous handler methods mapped for HTTP

严重: Servlet.service() for servlet [spring] in context with path [/ssmDemo] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path '/init.do': {public java.lang.String com.controller.InvitationController.toPageInvList(java.lang.Integer,com.vo.Page,javax.servlet.http.HttpServletRequest), public java.lang.String com.controller.InvitationController.toPageInvList(javax.servlet.http.HttpServletRequest)}. If you intend to handle the same path in multiple methods, then factor them out into a dedicated handler class with that path mapped at the type level!] with root cause
java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path '/init.do': {public java.lang.String com.controller.InvitationController.toPageInvList(java.lang.Integer,com.vo.Page,javax.servlet.http.HttpServletRequest), public java.lang.String com.controller.InvitationController.toPageInvList(javax.servlet.http.HttpServletRequest)}. If you intend to handle the same path in multiple methods, then factor them out into a dedicated handler class with that path mapped at the type level!

原因在于,在xxxController中写了两个init.do方法,造成了模棱两可的错误,删除掉一个即可

 

posted @ 2017-02-10 17:35  醉不上道  阅读(10263)  评论(0编辑  收藏  举报