✅ 오류
→org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='productContents', mode=IN, javaType=class java.lang.String, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #2 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 부적합한 열 유형: 1111
✅ 문제원인
→ MyBatis가 데이터베이스 열에 대한 매핑 문제로 인해 SQL 문을 실행하지 못할 때 발생
- 넘어가는 데이터 타입이 다를 경우
- Map을 파라미터로 넘겼을 시에 해당 맵안에 파라미터가 Null일 경우
- request 파라미터 값이 없을 경우
- form id & name 값 미지정시
- ajax를 사용했을 겨우에 value가 하나라도 null일 경우.
✅ 해결방법
→ 오타였습니다..!