##根据MySQL生成 dao等代码的maven插件
- 添加插件源
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>releases</id>
<name>tdeado</name>
<url>http://nexus.tdeado.com/repository/maven-releases/</url>
</pluginRepository>
</pluginRepositories>
- 添加到插件
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.tdeado</groupId>
<artifactId>generate-code</artifactId>
<version>3.0</version>
<configuration>
<host>mysqlhost</host>
<port>mysqlprot</port>
<user>mysqlroot</user>
<pass>mysqlpass</pass>
<dbname>mysqldb</dbname>
<prefix>tableprefix</prefix>
</configuration>
</plugin>
</plugins>
</build>
添加依赖的库
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.10</version>
</dependency>