![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis generator
键盘上的手艺人-cloudFly
技术源于生活,高于生活
展开
-
Mybatis-generator自动生成代码时提取自定义注释
在上篇文章中 https://blog.csdn.net/yanyf2016/article/details/102972195 生成的实体类没有数据库自己定义的注释, 根据网上找到的资料以及阅读Mybatis-generator源码,发现可以通过自定义注释生成器 CommentGenerator 接口的实现类来达到我们的目的。 通过阅读源码可以看到,代码生成注释是通过DefaultComm...原创 2019-11-08 15:28:42 · 549 阅读 · 0 评论 -
mybatis generator自动生成工具,tinyint处理
建个maven项目 1.pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc...原创 2019-11-08 14:27:52 · 3360 阅读 · 0 评论