반응형
오류
No enum constant org.apache.ibatis.type.JdbcType.Integer
원인
mapper 내에 jdbcType 잘못 입력..
--mapper.xml
--jdbcType=Integer
#{컬럼,javaType=java.lang.Integer,jdbcType=Integer,mode=IN}
해결방법
jdbcType 정의된 값을 정확히 사용한다.
JdbcType | Mybatis | Oracle | MySql |
JdbcType | ARRAY | ||
JdbcType | BIGINT | BIGINT | |
JdbcType | BINARY | ||
JdbcType | BIT | BIT | |
JdbcType | BLOB | BLOB | BLOB |
JdbcType | BOOLEAN | ||
JdbcType | CHAR | CHAR | CHAR |
JdbcType | CLOB | CLOB | CLOB–>修改为TEXT |
JdbcType | CURSOR | ||
JdbcType | DATE | DATE | DATE |
JdbcType | DECIMAL | DECIMAL | DECIMAL |
JdbcType | DOUBLE | NUMBER | DOUBLE |
JdbcType | FLOAT | FLOAT | FLOAT |
JdbcType | INTEGER | INTEGER | INTEGER |
JdbcType | LONGVARBINARY | ||
JdbcType | LONGVARCHAR | LONG VARCHAR | |
JdbcType | NCHAR | NCHAR | |
JdbcType | NCLOB | NCLOB | |
JdbcType | NULL | ||
JdbcType | NUMERIC | NUMERIC/NUMBER | NUMERIC/ |
JdbcType | NVARCHAR | ||
JdbcType | OTHER | ||
JdbcType | REAL | REAL | REAL |
JdbcType | SMALLINT | SMALLINT | SMALLINT |
JdbcType | STRUCT | ||
JdbcType | TIME | TIME | |
JdbcType | TIMESTAMP | TIMESTAMP | TIMESTAMP/DATETIME |
JdbcType | TINYINT | TINYINT | |
JdbcType | UNDEFINED | ||
JdbcType | VARBINARY | ||
JdbcType | VARCHAR | VARCHAR | VARCHAR |
반응형
'개발 환경 및 오류' 카테고리의 다른 글
[JUNIT] initializationError 오류 (0) | 2023.07.07 |
---|---|
[AngularJs] because the scheme does not have a registered handler. (0) | 2023.07.06 |
[MSSQL] CONVERT(DATETIME, )시 오류 (0) | 2023.06.22 |
nested exception is java.lang.NoClassDefFoundError (0) | 2023.05.30 |
[Junit] WebApplicationContext is required (0) | 2023.04.18 |