SpringMVC 报错java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path

严重: Servlet.service() for servlet [spmvc] in context with path [/yeya] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path ‘http://localhost:8080/yeya/webfront/order/showOrder/1006‘: {public java.lang.String org.whluojia.mvc.webfront.controller.OrderController.showOrderDetail(java.lang.String,org.springframework.ui.Model,javax.servlet.http.HttpServletRequest), public java.lang.String org.whluojia.mvc.webfront.controller.OrderController.showOrder(java.lang.String,org.springframework.ui.Model,javax.servlet.http.HttpServletRequest)}] with root cause
java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path ‘http://localhost:8080/yeya/webfront/order/showOrder/1006‘: {public java.lang.String org.whluojia.mvc.webfront.controller.OrderController.showOrderDetail(java.lang.String,org.springframework.ui.Model,javax.servlet.http.HttpServletRequest), public java.lang.String org.whluojia.mvc.webfront.controller.OrderController.showOrder(java.lang.String,org.springframework.ui.Model,javax.servlet.http.HttpServletRequest)}
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(AbstractHandlerMethodMapping.java:340)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:296)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:1)
at org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(AbstractHandlerMapping.java:299)
at org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:603)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:462)

一开始百度了一下 以为是参数绑定错误,后来发现是url重复了

你可能感兴趣的:(日记)