오류

songi Jeon·2021년 3월 29일
0

오류 로그

목록 보기
10/16

오류내용:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping found. Cannot map 'loginController' bean method
public java.lang.String com.open.ma.login.LoginController.fail(com.open.cmmn.model.CmmnDefaultVO,org.springframework.ui.ModelMap) throws java.lang.Exception
to {[/cmmn/fail.do],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}: There is already 'loginFtController' bean method
public java.lang.String com.open.cmmn.ft.login.LoginFtController.fail(com.open.cmmn.model.CmmnDefaultVO,org.springframework.ui.ModelMap) throws java.lang.Exception mapped.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554) ~[spring-beans-4.0.9.RELEASE.jar:4.0.9.RELEASE].....

해결: controller에 requestmapping 이름이 겹쳐서, 중복 제거하기


profile
비전공자가 백엔드 개발자 도전하는 블로그

0개의 댓글