博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SSM框架整合中遇到重复的问题Ambiguous handler methods mapped for HTTP
阅读量:7011 次
发布时间:2019-06-28

本文共 1273 字,大约阅读时间需要 4 分钟。

严重: 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方法,造成了模棱两可的错误,删除掉一个即可

 

转载于:https://www.cnblogs.com/ZuiBuShangDao/p/6387353.html

你可能感兴趣的文章