반응형
MyBatis 사용시 에러 발생.
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.SQLFeatureNotSupportedException: The data type 'OTHER' is not supported.
; SQL []; The data type 'OTHER' is not supported.; nested exception is java.sql.SQLFeatureNotSupportedException: The data type 'OTHER' is not supported.
2번째 파라미터값이 null 이라서 문제가 생김.
해결 방안.
query 문에 jdbcType 추가.
ex) ADDRESS = #{address, jdbcType=VARCHAR}
반응형
'프로그래밍 > Java' 카테고리의 다른 글
spring exception handler (0) | 2014.03.24 |
---|---|
[java 7] copy file, delete file/directory (0) | 2014.03.21 |
[iBatis/myBatis] #와 $의 차이점 (1) | 2014.01.02 |
[이클립스] generate jaxb classes 한글깨짐. (0) | 2013.09.16 |
아파치 미나(mina) 참고 site (0) | 2013.06.01 |