IDEA+Mybatis-generator代码生成工具
作者:互联网
1、修改pom.xml
<plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.4.0</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> <scope>runtime</scope> <version>8.0.25</version> </dependency> </dependencies> </plugin>
2、下载Maven资源
3、重启IDEA
4、在maven栏查看插件是否成功安装
5、添加至命令列表
在maven中添加
标签:xml,代码生成,generator,IDEA,maven,mybatis,mysql,Mybatis 来源: https://www.cnblogs.com/dndt/p/16399814.html