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.com/jiushixihuandaqingtian/p/11172129.html

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

Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.int的相关文章

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),     DA

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

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

android Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Must specify unique

今天写了一个静态得fragment,好久没写了,一写就出现问题了,先看下布局文件 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height=&qu

Caused by: java.lang.IllegalArgumentException: error at ::0 can&#39;t find referenced pointcut aaa

这个错误是说,找不到这个注释: 解决方案: 1.更改自己本机的jdk版本(我的更改了无效): 在工程选择框内点击右键--->build path----->Library--->add Library 选择JRE System Library ----->next 就可以更改了. 2.更改aspectjweaver.ja的版本,进入官网这一页http://www.eclipse.org/aspectj/downloads.php 选择aspectj-1.8.8.jar进行下载. 完

Spring与JDK版本不一致引发问题Caused by: java.lang.IllegalArgumentException

tomcat启动一个spring的项目,tomcat使用8.5,JDK使用1.8,Spring使用3.0,启动之后报错 Caused by: java.lang.IllegalArgumentException at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.springframework.asm.ClassReader.<init>(Unknown Source) at org.spring

解决kylin报错:Failed to create dictionary on &lt;db&gt;.&lt;table&gt;, Caused by: java.lang.IllegalArgumentException: Too high cardinality is not suitable for dictionary

报错信息: 2017-05-13 15:14:30,035 DEBUG [pool-9-thread-10] dict.DictionaryGenerator:94 : Dictionary class: org.apache.kylin.dict.TrieDictionary 2017-05-13 15:14:30,036 ERROR [pool-9-thread-10] common.HadoopShellExecutable:65 : error execute HadoopShellEx

Caused by: java.lang.IllegalArgumentException: addChild: Child name &#39;localhost&#39; is not unique

1.错误描述 严重: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl

Android广播接收器注册问题:Caused by: java.lang.IllegalArgumentException: Receiver not registered

1.程序中明明使用如下方法进行了广播的注册和解除注册: mContext.registerReceiver(downloadReceiver, filter); mContext.unregisterReceiver(downloadReceiver); 但程序运行过程中还是有一下问题: android.app.IntentReceiverLeaked: Activity *********** has leaked IntentReceiver *********** that was ori