MyBatisReverse engineering to remove table name prefixes
Scene:
For example, the table name is t_user, and you want to generate a file starting with User, rather than a file starting with TUser.
Requires download of mybatis-generator version 1.3.6
/mybatis/generator/releases
Then change the configuration file
<table schema="" tableName="t_user"><domainObjectRenamingRule searchString="^T" replaceString="" /></table>
- 1
Compared to the past, new
<domainObjectRenamingRule searchString="^T" replaceString="" />
- 1
Be sure to pay attention,T must be capitalized, otherwise it will be useless.
refer to:
Mybatis generator replaces/removes the prefix of all tables: columnRenamingRule & domainObjectRenamingRule - CSDN Blog
/superdangbo/article/details/78752890