git clone https://github.com/backkoms/mybatis-generator-comments.git
編譯打包,install到本地或delopy私服庫中都可。java
<plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>${plugins-mybatis-generator.version}</version> <configuration> <verbose>true</verbose> <overwrite>true</overwrite> </configuration> <dependencies> <dependency> <groupId>com.haier.hairy</groupId> <artifactId>mybatis-generator-core</artifactId> <version>1.0.1</version> </dependency> </dependencies> </plugin>
<commentGenerator type="org.mybatis.generator.internal.CustomeCommentGenerator"> <property name="javaFileEncoding" value="UTF-8"/> <property name="suppressDate" value="true" /> <property name="suppressAllComments" value="false" /> </commentGenerator>
執行命令:mvn mybatis-generator:generate
查看執行生成文件
git