Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.int
Posted jiushixihuandaqingtian
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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" />
以上是关于Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.int的主要内容,如果未能解决你的问题,请参考以下文章