https://www.jianshu.com/p/e09d2370b796
https://blog.csdn.net/baidu_16757561/article/details/75071476
https://blog.csdn.net/littleboyandgirl/article/details/82285986
https://blog.csdn.net/isea533/article/details/42102297
https://www.jianshu.com/p/e09d2370b796
mybatis-config.xml詳解
https://blog.csdn.net/wsh596823919/article/details/80761911
Git Flow Integration
Free Mybatis plugin
MyBatis Log Plugin
MyBatis Xml Validator
Power Mode
mybatipse
Eclipser converts Eclipse launch configurations into IntelliJ IDEA configurations:
GsonFormat
Lombok plugin
https://www.jianshu.com/p/b44dad6266a3
https://gitee.com/nieqiurong/mybatis-log
場景:
比如表名為t_user,想要生成User開頭的文件,而不是TUser開頭的文件。
需要下載1.3.6版本的mybatis-generator
https://github.com/mybatis/generator/releases
然后更改配置文件
<table schema="" tableName="t_user"><domainObjectRenamingRule searchString="^T" replaceString="" /></table>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.6</version>
<table schema="" tableName="t_goods%" enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false" enableUpdateByExample="false">
<!-- enableInsert="false" enableUpdateByPrimaryKey="false" enableUpdateByExample="false"
enableDeleteByPrimaryKey="false" enableDeleteByExample="false" -->
<!--enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false" enableUpdateByExample="false" -->
<!-- 指定對象名 domainObjectName="DeviceResponse" -->
<!-- 屬性非駝峰
<property name="useActualColumnNames" value="true"/>
-->
<generatedKey column="id" sqlStatement="Mysql" identity="true"/>
earchString="^[^_]+",這個查找字符串就是使用正則表達式來匹配表的字段名
這個意思就是匹配,開頭的任意個非下划線(_)的字符,也就是這種如:c_,abc_。。。等等
<columnRenamingRule searchString="^[^_]+" replaceString=""/>
<domainObjectRenamingRule searchString="^T" replaceString="" />
<!-- 屬性去前綴
<columnRenamingRule searchString="^c_" replaceString="" />
-->
<!-- 指定字段類型
<columnOverride column="content" javaType="java.lang.String" jdbcType="VARCHAR" />
-->
</table>
https://blog.csdn.net/weixin_33743880/article/details/90121373