[에러해결] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL

뿌이·2022년 11월 17일
0

오류해결

목록 보기
33/54
[10:27:17,737-ERROR] Context initialization failed (ContextLoader.java.initWebApplicationContext():351) [org.springframework.web.context.ContextLoader]
org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'documentationPluginsBootstrapper' 
defined in URL 
[jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core
/tmp0/wtpwebapps/common/WEB-INF/lib/springfox-spring-web-2.5.0.jar!
/springfox/documentation/spring/web/plugins
/DocumentationPluginsBootstrapper.class]: 
Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'webMvcRequestHandlerProvider' defined in 
URL
[jar:file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core
/tmp0/wtpwebapps/common/WEB-INF/lib/springfox-spring-web-2.5.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/web/servlet/config/annotation/DelegatingWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'shortenUrlController' method 
public com.duzon.common.model.LuluResult com.duzon.lulu.shortenUrl.controller.ShortenUrlController.getShortenUrl() throws java.lang.Exception
to {[/pass/shortenurl],methods=[POST],produces=[application/json;charset=utf-8]}: There is already 'memberController' bean method
public com.duzon.common.model.LuluResult com.duzon.lulu.invite.controller.MemberController.getShortenUrl() mapped.

대충 이렇게 긴 오류였는데 뭐가 문제였냐면...
내가 만든 /어쩌구/저쩌구 API는 이미 shortenUrlController에 존재했다 ;;;
에휴..
잘 확인했어야했는데...

profile
기록이 쌓이면 지식이 된다.

0개의 댓글