java.lang.IllegalStateException: Ambiguous handler methods mapped for

Publicado el: 16 octubre 2023
en el canal de: Code With Mani
357
5

How to solve Ambiguous handler methods mapped problem in spring boot framework.
codewithmani
o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Ambiguous handler methods mapped for '/get/studentdto/details/1': {public org.springframework.http.ResponseEntity com.code.with.mani.controller.StudentController.getdto(int) throws com.code.with.mani.expeption.StudentNotFoundException, public org.springframework.http.ResponseEntity com.code.with.mani.controller.StudentController.get(java.lang.String) throws com.code.with.mani.expeption.StudentNotFoundException}] with root cause

java.lang.IllegalStateException: Ambiguous handler methods mapped for '/get/studentdto/details/1': {public org.springframework.http.ResponseEntity com.code.with.mani.controller.StudentController.getdto(int) throws com.code.with.mani.expeption.StudentNotFoundException, public org.springframework.http.ResponseEntity com.code.with.mani.controller.StudentController.get(java.lang.String) throws com.code.with.mani.expeption.StudentNotFoundException}
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(AbstractHandlerMethodMapping.java:432) ~[spring-webmvc-5.3.30.jar:5.3.30]
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:383) ~[spring-webmvc-5.3.30.jar:5.3.30]
at org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.getHandlerInternal(RequestMappingInfoHandlerMapping.java:125) ~[spring-webmvc-5.3.30.jar:5.3.30]
at org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.getHandlerInternal(RequestMappingInfoHandlerMapping.java:67) ~[spring-webmvc-5.3.30.jar:5.3.30]
at org.springframework.web.servlet.handler.AbstractHandlerMapping.getHandler(AbstractHandlerMapping.java:498) ~[spring-webmvc-5.3.30.jar:5.3.30]
at org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:1266) ~[spring-webmvc-5.3.30.jar:5.3.30]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1048) ~[spring-webmvc-5.3.30.jar:5.3.30]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965) ~[spring-webmvc-5.3.30.jar:5.3.30]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.30.jar:5.3.30]
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.3.30.jar:5.3.30]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:529) ~[tomcat-embed-core-9.0.80.jar:4.0.FR]


En esta página del sitio puede ver el video en línea java.lang.IllegalStateException: Ambiguous handler methods mapped for de Duración hora minuto segunda en buena calidad , que subió el usuario Code With Mani 16 octubre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 357 veces y le gustó 5 a los espectadores. Disfruta viendo!