在pom.xml中添加如下插件以及插件相关的依赖
org.springframework.boot
spring-boot-maven-plugin
repackage
org.apache.maven.plugins
maven-compiler-plugin
2.3.2
1.8
1.8
org.mybatis.generator
mybatis-generator-maven-plugin
1.3.6
src/main/resources/generatorConfig.xml
true
true
com.thunisoft.arterybase
ArteryBase
3.6.2.2
tk.mybatis
mapper
4.0.0
generatorConfig.xml文件的详细内容如下
/p>
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
connectionURL="jdbc:mysql://localhost:3306/dbdicom"
userId="root"
password="root">
targetProject="src/main/java">
enableCount