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 'controllNoMngServiceController' bean method
public org.springframework.web.servlet.ModelAndView eco.work.CommonData.Manage.WorkProperty.ControllNoMng.ControllNoMngServiceController.controlNo_search(javax.servlet.http.HttpServletRequest,eco.work.CommonData.Manage.WorkProperty.ControllNoMng.ControllNoMngServiceParam) throws java.lang.Exception
메티스 실행중 svn에서 업데이트를 받은 후 서버 재가동했더니 위와같이 에러가 발생하였다.
에러 이유를 이곳저곳 찾던중
http://sesion.tistory.com/entry/ERROR-%ED%94%84%EB%A0%88%EC%9E%84%EC%9B%8C%ED%81%ACAmbiguous-mapping-found-Cannot-map-%EC%8A%A4%ED%94%84%EB%A7%81
발견 RequestMapping 값이 중복되어서 에러가 발생한것을 알수있었다.
ControllNoMngServiceController 와 ControllNoServiceController 에서 RequestMapping 이 중복이였다
겹쳐진 둘중에서 하나를 지우거나 다른거로 바꾸면 해결된다.
'개발 > java' 카테고리의 다른 글
poi 이용 엑셀 파일 만들기 (0) | 2017.06.28 |
---|---|
자바공부 (0) | 2016.11.11 |
String,char (0) | 2016.11.09 |
1주차 - 자바란? , 변수 (0) | 2016.11.04 |
진법 (0) | 2016.11.04 |
댓글