Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
1. mapper id가 다를경우
- mapper파일(MyBatis의 쿼리문을 등록한 XML파일)에 <select id=''.. 에 id와
mapper파일에 직접 접근하는 java파일(DAO나 service)에 적어놓은 id값이 다른 경우
2. Parameter와 bean의 필드명이 틀린 경우
3. mapper파일(MyBatis의 쿼리문을 등록한 XML파일)에 정의된 네임스페이스(namespace)와
mapper파일에 직접 접근하는 java파일(DAO나 service)에서 호출하는 네임스페이스(namespace)가 다를 경우
4. MyBatis config파일에 mapper가 정의가 되어 있지 않거나 Spelling이 틀린 경우
5. mapper에 정의된 namespace 명칭이 같은 Application 내에 중복 될 경우
'etc > error' 카테고리의 다른 글
ORA-00933: SQL command not properly ended] with root cause (0) | 2023.09.19 |
---|---|
페이지에서 request 값전달시 한글이 깨질때 (0) | 2023.09.06 |
이클립스 tomcat port 충돌 오류 (0) | 2023.09.06 |
The import java.sql cannot be resolved (0) | 2023.09.03 |
[자바스크립트]Uncaught SyntaxError: Unexpected end of input (0) | 2022.03.17 |