下载插件源码
org.mybatis.generator.plugins
generator/releases
Example改名Criteria+Mapper改名Dao
generatorConfig.xml示例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<generatorConfiguration>
<context id="Mysql" targetRuntime="MyBatis3Simple" defaultModelType="flat">
<plugin type="org.mybatis.generator.plugins.RenameExampleClassPlugin"> <property name="searchString" value="Example$"/> </plugin> <plugin type="org.mybatis.generator.plugins.rename.RenameSqlMapperPlugin"> <property name="searchString" value="Mapper"/> <property name="replaceString" value="Dao"/> </plugin>
<plugin type="org.mybatis.generator.plugins.rename.RenameJavaMapperPlugin"> <property name="searchString" value="Mapper$"/> <property name="replaceString" value="Dao"/> </plugin> </context>
</generatorConfiguration>
|
近期评论