|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!-- 定义项目的根元素,使用 Maven POM 4.0.0 架构 -->
|
|
|
<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">
|
|
|
<!-- 指定 POM 模型的版本,固定为 4.0.0 -->
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<!-- 定义项目的父 POM,继承父项目的配置 -->
|
|
|
<parent>
|
|
|
<!-- 父项目的组 ID -->
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<!-- 父项目的项目 ID -->
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
<!-- 父项目的版本 -->
|
|
|
<version>2.2.2.RELEASE</version>
|
|
|
<!-- 查找父项目的相对路径,为空表示从仓库中查找 -->
|
|
|
<relativePath/>
|
|
|
</parent>
|
|
|
<!-- 项目的组 ID,通常是公司或组织的域名倒序 -->
|
|
|
<groupId>com.jlwl</groupId>
|
|
|
<!-- 导入项目的名称 -->
|
|
|
<artifactId>springbootus5uu</artifactId>
|
|
|
<!-- 项目的版本,SNAPSHOT 表示快照版本 -->
|
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
|
<!-- 项目的名称 -->
|
|
|
<name>springboot-schema</name>
|
|
|
<!-- 项目的描述信息,说明是 springboot 学习框架,以及打 war 包的命令 -->
|
|
|
<description>springboot学习框架(war包对应的pom,打war包,执行【mvn clean package -f pom-war.xml】)</description>
|
|
|
<!-- 项目的打包方式,这里指定为 war 包 -->
|
|
|
<packaging>war</packaging>
|
|
|
|
|
|
<!-- 定义项目的属性 -->
|
|
|
<properties>
|
|
|
<!-- Java 版本 -->
|
|
|
<java.version>1.8</java.version>
|
|
|
<!-- FastJson 版本 -->
|
|
|
<fastjson.version>1.2.8</fastjson.version>
|
|
|
<!-- Maven JAR 插件版本 -->
|
|
|
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
|
|
|
</properties>
|
|
|
|
|
|
<!-- 定义项目的依赖 -->
|
|
|
<dependencies>
|
|
|
<!-- Spring Boot Web 启动器依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
</dependency>
|
|
|
<!-- MyBatis Spring Boot 启动器依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
<version>2.1.1</version>
|
|
|
</dependency>
|
|
|
<!-- Spring Boot JDBC 启动器依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
|
</dependency>
|
|
|
<!-- Spring Boot Tomcat 启动器依赖,scope 为 provided 表示运行时由容器提供 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
<scope>provided</scope>
|
|
|
</dependency>
|
|
|
<!-- MySQL 数据库连接驱动依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
</dependency>
|
|
|
<!-- Apache Shiro Spring 集成依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
<artifactId>shiro-spring</artifactId>
|
|
|
<version>1.3.2</version>
|
|
|
</dependency>
|
|
|
<!-- MyBatis-Plus 依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
<artifactId>mybatis-plus</artifactId>
|
|
|
<version>2.3</version>
|
|
|
</dependency>
|
|
|
<!-- MyBatis-Plus Spring Boot 启动器依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
<artifactId>mybatisplus-spring-boot-starter</artifactId>
|
|
|
<version>1.0.5</version>
|
|
|
</dependency>
|
|
|
<!-- Google Protobuf Java 依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
<artifactId>protobuf-java</artifactId>
|
|
|
<version>3.10.0</version>
|
|
|
</dependency>
|
|
|
<!-- Apache Commons Lang3 依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
<version>3.0</version>
|
|
|
</dependency>
|
|
|
<!-- Java 验证 API 依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>javax.validation</groupId>
|
|
|
<artifactId>validation-api</artifactId>
|
|
|
<version>2.0.1.Final</version>
|
|
|
</dependency>
|
|
|
<!-- Apache Commons IO 依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>commons-io</groupId>
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
<version>2.5</version>
|
|
|
</dependency>
|
|
|
<!-- Hutool 工具集依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
<version>4.0.12</version>
|
|
|
</dependency>
|
|
|
<!-- FastJson 依赖,版本使用属性中定义的值 -->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
<version>${fastjson.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 百度人工智能 Java SDK 依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>com.baidu.aip</groupId>
|
|
|
<artifactId>java-sdk</artifactId>
|
|
|
<version>4.4.1</version>
|
|
|
</dependency>
|
|
|
<!-- Spring Boot 测试启动器依赖,scope 为 test 表示只在测试时使用 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
<scope>test</scope>
|
|
|
<!-- 排除 JUnit Vintage 引擎依赖 -->
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
|
<groupId>org.junit.vintage</groupId>
|
|
|
<artifactId>junit-vintage-engine</artifactId>
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
<!-- 定义项目的构建配置 -->
|
|
|
<build>
|
|
|
<!-- 最终生成的 WAR 包名称 -->
|
|
|
<finalName>springbootus5uu</finalName>
|
|
|
<!-- 定义构建插件 -->
|
|
|
<plugins>
|
|
|
<!-- Spring Boot Maven 插件 -->
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
</plugin>
|
|
|
<!-- 跳过单元测试的插件配置 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<!-- 设置为 true 表示跳过单元测试 -->
|
|
|
<skipTests>true</skipTests>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|
|
|
</project> |