본문 바로가기

개발/오류

Ambiguous handler methods mapped for HTTP path

반응형

HTTP Status 500 – Internal Server Error


Type Exception Report

Message Request processing failed; nested exception is java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path 'http://localhost:8080/com/se': {public java.lang.String x(org.springframework.ui.Model,javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception, public java.lang.String 

x(java.util.Locale,org.springframework.ui.Model)}

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) javax.servlet.http.HttpServlet.service(HttpServlet.java:635) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

Root Cause

Note The full stack trace of the root cause is available in the server logs.


Pivotal tc Runtime 3.2.8.RELEASE/8.5.23.A.RELEASE


@RequestMapping 중복

같은 URL사용시 controller에서 매핑 할 수 없기 때문에 나타나는 오류로 중복된 URL을 사용하는 컨트롤러가 있는지 확인한다.


ㅠㅠㅠㅠㅠ이런 실수ㅠㅠㅠ 조심하자.... 



반응형