No enum constant org.apache.ibatis.type.JdbcType.Integer

public enum JdbcType {

    ARRAY(2003),

    BIT(-7),

    TINYINT(-6),

    SMALLINT(5),

    INTEGER(4),

    BIGINT(-5),

    FLOAT(6),

    REAL(7),

    DOUBLE(8),

    NUMERIC(2),

    DECIMAL(3),

    CHAR(1),

    VARCHAR(12),

    LONGVARCHAR(-1),

    DATE(91),

    TIME(92),

    TIMESTAMP(93),

    BINARY(-2),

    VARBINARY(-3),

    LONGVARBINARY(-4),

    NULL(0),

    OTHER(1111),

    BLOB(2004),

    CLOB(2005),

    BOOLEAN(16),

    CURSOR(-10),

    UNDEFINED(-2147482648),

    NVARCHAR(-9),

    NCHAR(-15),

    NCLOB(2011),

    STRUCT(2002),

    JAVA_OBJECT(2000),

    DISTINCT(2001),

    REF(2006),

    DATALINK(70),

    ROWID(-8),

    LONGNVARCHAR(-16),

    SQLXML(2009),

    DATETIMEOFFSET(-155);

作者:橙小张

链接:http://www.jianshu.com/p/01eedfd56bc8

來源:简书

著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

原文地址:https://www.cnblogs.com/jpfss/p/8745861.html

时间: 2024-07-31 20:34:33

No enum constant org.apache.ibatis.type.JdbcType.Integer的相关文章

No enum constant org.apache.ibatis.type.JdbcType.Integer 【找不到这个枚举类,mybatis相关】

同事今天在用mybatis查询时候,报了上面这个问题.上网查了下,原来是mybatis封装类型的问题.原因是在resultMap中jdbcType写为了Integer,但是在MyBatis中没有这个数据类型 来查看了原码,发现MyBatis的jdbcType是一个枚举类,有以下类型: public enum JdbcType { ARRAY(2003), BIT(-7), TINYINT(-6), SMALLINT(5), INTEGER(4), BIGINT(-5), FLOAT(6), RE

Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.int

数据库中一个字段为int类型,实体类中为INTEGER类型,用的mybatis的自动生成工具, 之所以会报这个错是因为生成的实体类中字段属性已经改成INTEGERl了, 但是对应的xml文件中还是int类型,并且JdbcType的值要求大写, 即<result column="is_delete" jdbcType="INTEGER" property="isDelete" /> 原文地址:https://www.cnblogs.co

Mybatis异常--java.lang.IllegalArgumentException: NO ENUM const class org.apache.ibatis.type.JdbcType.int

今天下午写代码时发现一直报错,找了半天都没找到错误原因. 最后才发现原来是XML配置错误,但是Mybatis不识别int的. 上Mybatis官网翻了翻才发现原来Mybatis的JdbcType全是大写,而且没有INT,只有INTEGER 以后注意,不能再写串了(╯‵□′)╯︵┻━┻ 好像oracle也有一些类型和Mybatis上定义的不一样,下次出了问题记得去查一下Mybatis中是怎样定义的了 原文地址:https://www.cnblogs.com/wcxcc/p/10734860.htm

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping...

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='createTime', mode=IN, javaType=class java.util.Date, jdbcType=null, numericScale=nul

【异常及源码分析】org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping

一.异常出现的场景 1)异常出现的SQL @Select("SELECT\n" + " id,discount_type ,min_charge, ${cardFee} AS actualDiscountPrice , discount_price AS discountPrice ,status ,name \n" + "FROM\n" + "\tuser_coupon \n" + "WHERE\n" +

MyBtais错误:org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.a

Cause: java.lang.ClassNotFoundException: Cannot find class: BaseResultMap at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factor

报错org.apache.ibatis.binding.BindingException: Type interface com.atguigu.mybatis.bean.dao.EmployeeMapper is not known to the MapperRegistry.

我报这个错误的原因是因为mybatis-config.xml配置文件中 <!-- 批量注册: --> <package name="com.atguigu.mybatis.dao"/> 没有写对,根据路径改正就可以了.比如说应该写成 <package name="com.atguigu.mybatis.dao"/> 结果我写成了 <package name="com.atguigu.mybatis.bean.dao

Springside动态组合条件搜索:No enum constant org.springside.modules.persistence.SearchFilter.Operator.GE

如下报错: 16:22:05.566 [http-nio-80-exec-12] ERROR 500.jsp - No enum constant org.springside.modules.persistence.SearchFilter.Operator.GE java.lang.IllegalArgumentException: No enum constant org.springside.modules.persistence.SearchFilter.Operator.GE at

MyBatis3.4.0以上的分页插件错误:Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler named prepare. Cause: java.lang.NoSuchMethodException: org.apache.ibatis.executor.stateme

错误: Could not find method on interface org.apache.ibatis.executor.statement.StatementHandler named prepare. Cause: java.lang.NoSuchMethodException: org.apache.ibatis.executor.statement.StatementHandler.prepare(java.sql.Connection)] with root cause 问题