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方法,造成了模棱兩可的錯誤,刪除掉一個即可
?
轉載于:https://www.cnblogs.com/ZuiBuShangDao/p/6387353.html
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的SSM框架整合中遇到重复的问题Ambiguous handler methods mapped for HTTP的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [QGLViewer]3D场景鼠标点击位
- 下一篇: [js高手之路] html5 canva