美文网首页
java lang.IllegalStateException

java lang.IllegalStateException

作者: 笨小老虎 | 来源:发表于2017-05-26 13:57 被阅读0次

    bug:java lang.IllegalStateException  Ambiguous handler methods mapped for HTTP path '/system/loginUser.htm': {public com.****.ltcins.userauth.dto.rsp.ResultDTO com.****.ltcins.cd.cms.role.controller.LoginUserController.remove(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse), public com.****.yfybx.admin.service.base.ResultDto com.****.yfybx.admin.controller.easyui.EasyUIController.remove(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.io.Serializable[])}. 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!

    问题原因:LoginUserController和他的父类EasyUIController中都有一个remove,重复

    解决方法:改变LoginUserController中原本的remove方法名remove1,即可

    相关文章

      网友评论

          本文标题:java lang.IllegalStateException

          本文链接:https://www.haomeiwen.com/subject/cifxfxtx.html