新随笔

HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path '/param': {public java.lang.String com.gdcp.controller.TestController.getCookies(java.lang.String), public java.lang.String com.gdcp.controller.TestController.getUser(com.gdcp.bean.User)}. 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!

 

 

 

原因:有两个请求路径一致的方法

 

 解决:注释掉一个方法

posted @ 2021-04-04 15:55  郑小  阅读(52)  评论(0编辑  收藏  举报