Mybatis避免tinyint(1)数据自动转化为boolean

Mybatis逆向生成代码避免tinyint生成Boolean

1.tinyint长度设为2(不建议),对于is_delete类似字段,一位就够了
2.在链接数据库的url加 ?tinyInt1isBit=false" 会生成Byte,默认这个属性是true

 

posted @ 2020-10-09 12:25  路要一步一步走  阅读(631)  评论(0编辑  收藏  举报