|
|
|
|
@ -22,9 +22,27 @@
|
|
|
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--web-->
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--mybatis-->
|
|
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
|
|
<artifactId>mybatis</artifactId>
|
|
|
|
|
<version>3.5.13</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--spring-boot与mybatis整合-->
|
|
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
|
<version>3.0.2</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--mysql-->
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
<version>8.0.33</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--test-->
|
|
|
|
|
@ -38,20 +56,62 @@
|
|
|
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--mapper-->
|
|
|
|
|
<groupId>tk.mybatis</groupId>
|
|
|
|
|
<artifactId>mapper</artifactId>
|
|
|
|
|
<version>3.3.9</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--通用mapper-->
|
|
|
|
|
<groupId>tk.mybatis</groupId>
|
|
|
|
|
<artifactId>mapper-spring-boot-starter</artifactId>
|
|
|
|
|
<version>2.1.5</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--lombok-->
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--tomcat-->
|
|
|
|
|
<groupId>org.apache.tomcat</groupId>
|
|
|
|
|
<artifactId>tomcat-servlet-api</artifactId>
|
|
|
|
|
<version>9.0.12</version>
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
|
|
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
|
|
|
<version>1.3.6</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<!--这是自动代码生成器的配置文件路径-->
|
|
|
|
|
<configurationFile>${basedir}/src/main/resources/generatorConfig.xml</configurationFile>
|
|
|
|
|
<verbose>true</verbose>
|
|
|
|
|
<overwrite>true</overwrite>
|
|
|
|
|
</configuration>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency><!--依赖的sql版本-->
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
<version>8.0.33</version>
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency><!--mapper通用方法框架-->
|
|
|
|
|
<groupId>tk.mybatis</groupId>
|
|
|
|
|
<artifactId>mapper</artifactId>
|
|
|
|
|
<version>4.1.4</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
</project>
|
|
|
|
|
|