1、springboot整合mybatis依赖<!--mybatis 整合-->
<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.2.0</version>
</dependency>
2、springboot中thymeleaf模板引擎
1 <!--Thymeleaf:基于3.x开发--> 2 <dependency> 3 <groupId>org.thymeleaf</groupId> 4 <artifactId>thymeleaf-spring5</artifactId> 5 </dependency> 6 <dependency> 7 <groupId>org.thymeleaf.extras</groupId> 8 <artifactId>thymeleaf-extras-java8time</artifactId> 9 </dependency>
3、lombok依赖
1 <dependency> 2 <groupId>org.projectlombok</groupId> 3 <artifactId>lombok</artifactId> 4 <version>1.16.20</version> 5 <scope>provided</scope> 6 </dependency>
4、Jquery依赖
1 <dependency> 2 <groupId>org.webjars</groupId> 3 <artifactId>jquery</artifactId> 4 <version>3.4.1</version> 5 </dependency>
5、整个web项目的依赖
1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4 <modelVersion>4.0.0</modelVersion> 5 <parent> 6 <groupId>org.springframework.boot</groupId> 7 <artifactId>spring-boot-starter-parent</artifactId> 8 <version>2.5.2</version> 9 <relativePath/> <!-- lookup parent from repository --> 10 </parent> 11 <groupId>com.kuang</groupId> 12 <artifactId>springboot-03-web</artifactId> 13 <version>0.0.1-SNAPSHOT</version> 14 <name>springboot-03-web</name> 15 <description>Spring Boot Web</description> 16 <properties> 17 <java.version>1.8</java.version> 18 </properties> 19 <dependencies> 20 <dependency> 21 <groupId>org.springframework.boot</groupId> 22 <artifactId>spring-boot-starter-web</artifactId> 23 </dependency> 24 25 <dependency> 26 <groupId>org.springframework.boot</groupId> 27 <artifactId>spring-boot-starter-test</artifactId> 28 <scope>test</scope> 29 </dependency> 30 31 32 <!--Thymeleaf:基于3.x开发--> 33 <dependency> 34 <groupId>org.thymeleaf</groupId> 35 <artifactId>thymeleaf-spring5</artifactId> 36 </dependency> 37 <dependency> 38 <groupId>org.thymeleaf.extras</groupId> 39 <artifactId>thymeleaf-extras-java8time</artifactId> 40 </dependency> 41 42 43 <dependency> 44 <groupId>org.projectlombok</groupId> 45 <artifactId>lombok</artifactId> 46 <version>1.16.20</version> 47 <scope>provided</scope> 48 </dependency> 49 50 51 52 <dependency> 53 <groupId>org.webjars</groupId> 54 <artifactId>jquery</artifactId> 55 <version>3.4.1</version> 56 </dependency> 57 63 </dependencies> 64 65 <build> 66 <plugins> 67 <plugin> 68 <groupId>org.springframework.boot</groupId> 69 <artifactId>spring-boot-maven-plugin</artifactId> 70 </plugin> 71 </plugins> 72 </build> 73 74 </project>