123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <!-- maven的父依赖 -->
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>3.2.0</version>
- <!-- 3.2.0 对应 spring 6.1.1 -->
- <!-- 3.2.1 对应 spring 6.1.2 -->
- <!-- 3.2.2 对应 spring 6.1.3 -->
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <groupId>com.sf</groupId>
- <artifactId>springboot-demo</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>springboot-demo</name>
- <description>springboot-demo</description>
- <properties>
- <java.version>17</java.version>
- </properties>
- <!-- <dependencyManagement>
- <dependencies>
- <dependency>
- 父pom中 提供了依赖管理器 子依赖只有在引入依赖时 才会真正加载jar包
- 父pom只管理版本 不管理是否被使用
- -->
- <dependencies>
- <!-- springboot 启动web项目的依赖 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <!-- spring-test的升级版 spring-boot-starter-test -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-thymeleaf</artifactId>
- <!-- 如果是springboot整合别的框架 名字叫做 spring-boot-starter-* -->
- <!-- 如果是别的框架整合springboot 名字叫做 *-spring-boot-starter -->
- </dependency>
- <dependency>
- <groupId>org.mybatis.spring.boot</groupId>
- <artifactId>mybatis-spring-boot-starter</artifactId>
- <!-- 在引入依赖时 如果父依赖的父依赖没有管理版本号 则需要自己引入 -->
- <!-- 当别的框架整合springboot时 往往需要自己管理版本 -->
- <version>3.0.3</version>
- </dependency>
- <!-- 数据库驱动 这个依赖有版本号 对应8.1.0-->
- <dependency>
- <groupId>com.mysql</groupId>
- <artifactId>mysql-connector-j</artifactId>
- <!-- 区别于原来使用的 mysql-connector-java -->
- <!-- <version>8.2.0</version>-->
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>1.18.30</version>
- </dependency>
- <!-- 使用thymeleaf生成代码 -->
- <dependency>
- <groupId>ognl</groupId>
- <artifactId>ognl</artifactId>
- <version>3.4.2</version>
- </dependency>
- <!-- 整合mybatis plus -->
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>3.5.4</version>
- </dependency>
- <!-- 使用mybatis plus的代码生成工具 使用了模板引擎freemarker -->
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-generator</artifactId>
- <version>3.5.4</version>
- </dependency>
- <dependency>
- <groupId>org.freemarker</groupId>
- <artifactId>freemarker</artifactId>
- <version>2.3.32</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </project>
|