ERROR 해결

[Mybatis / SpringBoot] 오류 해결법 Request processing failed; nested exception is java.lang.IllegalStateException: Ambiguous handler methods mapped for $

엘라 ELLA 2022. 11. 22. 13:00
728x90
반응형

Request processing failed; nested exception is java.lang.IllegalStateException: Ambiguous handler methods mapped for $

 

원인

@GetMapping, @PostMapping 등 Url을 설정하는 부분에서 동일한 Url을 2번 이상 지정했을 때 나는 에러

 

해결법

@GetMapping(/url) 의 url부분에 중복되게 설정한 부분이 있는지 확인 및 수정할것
필자는 일반 Controller와 API Controller를 분리하였는데, 일반 Contoller와 API Controller에서 중복이 있었음. 같은 파일 내가 아니라 프로젝프 내에서 중복이 있는지 확인할 것.

 


 

게시글이 도움이 되었다면

[로그인]이 필요 없는 ❤ 눌러주세요:)

반응형