[Mybatis] Auto Reverse Engineering

1, web pom configuration file to increase

<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.5</version>
<configuration>
<configurationFile>src/main/resources/generatorConfig.xml</configurationFile>
<verbose>true</verbose>
<overwrite>true</overwrite>
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.38</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<the artifactId> MyBatis-Generator-Core </ the artifactId>
<Version> 1.3.5 </ Version>
</ dependency>
<dependency>
<the groupId> com.jd.ofc </ the groupId>
<the artifactId> JD-OFC-utils- MyBatis </ the artifactId>
<Version> the SNAPSHOT-1.0 </ Version>
</ dependency>
</ Dependencies>
</ plugin>
</ plugins>
2, the profile web generatorConfig.xml increase the resources, database configuration changes, dao under the mapper file, pojo files in the domain, xml file location in the web. No path is automatically created.
3, in the execution mybatis-generator maven.

Guess you like

Origin www.cnblogs.com/tiaotiaoxia/p/11404041.html