반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- JPA
- 스프링 빈
- 스프링
- assertThat
- springboot
- jdbc
- spring
- 스프링 부트 기본
- thymeleaf
- db
- SQL
- 스프링 프레임워크
- Javascript
- 필드 주입
- 스프링 부트
- @Configuration
- 스프링부트
- kafka
- sqld
- mybatis
- java
- assertThrows
- DI
- DIP
- 생성자 주입
- 스프링 컨테이너
- resultMap
- 스프링 부트 입문
- 싱글톤
- Effective Java
Archives
- Today
- Total
선 조치 후 분석
[Error] nested exception is org.apache.ibatis.exceptions.PersistenceException / IllegalArgumentException 본문
ETC/Error
[Error] nested exception is org.apache.ibatis.exceptions.PersistenceException / IllegalArgumentException
JB1104 2021. 12. 13. 20:34728x90
반응형
SMALL
[Error] nested exception is org.apache.ibatis.exceptions.PersistenceException / IllegalArgumentException
nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error updating database. Cause: java.lang.IllegalArgumentException:
Mapped Statements collection does not contain value for XXXMaster.XXTable_INSERT### Cause:
java.lang.IllegalArgumentException:
Mapped Statements collection does not contain value for XXXMaster.XXTable_INSERT
원인
- mapper id가 틀린 경우
- Parameter와 bean의 field명이 틀린 경우
- sql.xml에서 정의된 namespace와 DAO에서 호출하는 namespace가 다를 경우
- mapper가 정의되어 있지 않거나 Speeling이 틀린 경우
- mappe에 정의된 namespace 명칭이 같은 Application 내에 중복될 경우
필자는 3번에 속한 문제로 에러가 발생했다.
Service에서 호출하는 부분에서 namespace를 제대로 작성하지 않아서 오류가 발생했었다.
728x90
반응형
LIST
'ETC > Error' 카테고리의 다른 글
[ERROR] Java 오류 - Syntax error on token "class", @ expected (0) | 2022.02.09 |
---|---|
[Error] Workspace UTF-8 설정 (0) | 2022.01.04 |
[JDBC-5074] Given string does not represent a number in proper format. (0) | 2021.12.28 |
[Error] JDBC-12040:Statement canceled (0) | 2021.12.13 |
[Java Error] NoSuchElementException? (0) | 2021.11.17 |