java lang.IllegalStateException Ambiguous handler methods mapped for HTTP path '/system/loginUser.htm'

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,重復(fù)

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,653評論 19 139
  • 1. Java基礎(chǔ)部分 基礎(chǔ)部分的順序:基本語法,類相關(guān)的語法,內(nèi)部類的語法,繼承相關(guān)的語法,異常的語法,線程的語...
    子非魚_t_閱讀 34,741評論 18 399
  • 本文包括:1、Listener簡介2、Servlet監(jiān)聽器3、監(jiān)聽三個域?qū)ο髣?chuàng)建和銷毀的事件監(jiān)聽器4、監(jiān)聽三個域?qū)?..
    廖少少閱讀 6,655評論 6 28
  • 小編費(fèi)力收集:給你想要的面試集合 1.C++或Java中的異常處理機(jī)制的簡單原理和應(yīng)用。 當(dāng)JAVA程序違反了JA...
    八爺君閱讀 5,234評論 1 114
  • 這部分主要是與Java Web和Web Service相關(guān)的面試題。 96、闡述Servlet和CGI的區(qū)別? 答...
    雜貨鋪老板閱讀 1,504評論 0 10

友情鏈接更多精彩內(nèi)容