OR博客
mybatis-generator 无法自动生成字段类型为text的属性
OrdinaryRoad
创建于:2021-09-22 17:59:49
0
17
75
0
生成代码后发现缺少两个字段,对应的数据库类型都是text
解决思路: `<columnOverride column="your column" jdbcType="VARCHAR" />` The fully qualified Java Type of the property for this column. This can be used to override the type calculated by the JavaTypeResolver if required. For some databases, this is necessary to handle "odd" database types (e.g. MySql's unsigned bigint type should be mapped to java.lang.Object). 相关链接: [mybatis-generator 无法自动生成字段类型为text的属性_热爱学习,享受生活-CSDN博客](https://blog.csdn.net/javaious/article/details/20557019) [Spring和MyBatis整合自动生成代码里面text类型坑 - 简书 (jianshu.com)](https://www.jianshu.com/p/8e035078b8e5)
评论