|
|
|
@ -1,51 +1,76 @@
|
|
|
|
|
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<!--
|
|
|
|
|
project是整个Maven项目对象模型(POM)的根元素,这里通过xmlns等属性定义了命名空间相关信息,
|
|
|
|
|
用于遵循Maven项目配置的规范,使得解析器能正确解析各个标签和属性。
|
|
|
|
|
-->
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<!-- modelVersion指定了当前POM文件所遵循的版本规范,这里的4.0.0是常用的Maven POM版本号。 -->
|
|
|
|
|
|
|
|
|
|
<groupId>com.tamguo</groupId>
|
|
|
|
|
<!-- groupId定义了项目所属的组织或团队的唯一标识符,通常是按照反向域名的方式来命名,用于在仓库中对项目进行分组管理。 -->
|
|
|
|
|
<artifactId>tamguo</artifactId>
|
|
|
|
|
<!-- artifactId是项目的唯一标识符,与groupId一起构成了项目在Maven仓库中的坐标,用于区分不同的项目构件。 -->
|
|
|
|
|
<version>V1.0.1</version>
|
|
|
|
|
<!-- version指定了项目的版本号,方便进行版本控制和发布管理,不同版本可以有不同的功能、修复等变更。 -->
|
|
|
|
|
<name>tamguo</name>
|
|
|
|
|
<!-- name属性简单地给项目取了一个更易读的名称,便于人类识别项目。 -->
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
|
<!-- parent元素用于指定当前项目继承自哪个父项目,这样可以继承父项目的配置,减少重复配置的工作量。 -->
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
<version>1.5.3.RELEASE</version>
|
|
|
|
|
<!-- 这里指定了父项目的版本号,决定了继承过来的相关依赖等配置的版本情况。 -->
|
|
|
|
|
<relativePath /> <!-- lookup parent from repository -->
|
|
|
|
|
<!-- relativePath元素在这里表示相对路径,若为空(此处),则会从本地仓库或远程仓库查找父项目。 -->
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
<!-- properties元素用于定义项目中的一些自定义属性,方便在其他地方引用,提高配置的可维护性。 -->
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<!-- 定义项目构建时的源文件编码格式为UTF-8,确保代码中的字符能正确解析和处理。 -->
|
|
|
|
|
<java.version>1.8</java.version>
|
|
|
|
|
<!-- 指定项目使用的Java版本为1.8,构建和运行项目时会依据此版本进行相关的编译等操作。 -->
|
|
|
|
|
<mybatis-plus-boot-starter.version>2.1.9</mybatis-plus-boot-starter.version>
|
|
|
|
|
<!-- 自定义的属性,用于指定mybatis-plus-boot-starter依赖的版本号,方便在后续依赖配置中引用。 -->
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<!-- dependencies元素用于列出项目所依赖的其他库或模块,这些依赖会被包含到项目的构建和运行环境中。 -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
<!-- 引入Spring Boot的Web启动器依赖,它会自动包含构建Web应用所需的一系列基础依赖,如Spring MVC等相关库。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-starter-config</artifactId>
|
|
|
|
|
<!-- 引入Spring Cloud配置相关的启动器依赖,用于实现配置管理等功能,比如从配置中心获取配置信息等。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
|
|
|
<!-- 引入Thymeleaf模板引擎的启动器依赖,方便在Spring Boot项目中使用Thymeleaf进行页面模板渲染。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
|
|
|
<!-- 引入Spring Boot的JDBC启动器依赖,提供了与数据库进行JDBC操作的基础支持,可用于连接数据库等操作。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<!-- mybatis-plus begin -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
|
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
|
|
<version>${mybatis-plus-boot-starter.version}</version>
|
|
|
|
|
<!-- 使用前面定义的属性来指定mybatis-plus-boot-starter的版本号,实现依赖版本的统一管理和灵活配置。 -->
|
|
|
|
|
<exclusions>
|
|
|
|
|
<exclusion>
|
|
|
|
|
<artifactId>tomcat-jdbc</artifactId>
|
|
|
|
|
<groupId>org.apache.tomcat</groupId>
|
|
|
|
|
<!-- exclusions元素用于排除该依赖传递引入的某些子依赖,这里排除了tomcat-jdbc依赖,可能是因为项目中不需要或者要使用其他的JDBC实现。 -->
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
|
|
|
|
</dependency>
|
|
|
|
@ -53,58 +78,70 @@
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>net.sourceforge.nekohtml</groupId>
|
|
|
|
|
<artifactId>nekohtml</artifactId>
|
|
|
|
|
<!-- 引入nekohtml库,可能用于HTML相关的解析或处理等功能,具体取决于项目需求。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
<!-- 引入Spring Boot的测试启动器依赖,scope属性设置为test表示该依赖仅在测试阶段使用,不会包含到最终的生产环境部署包中。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-redis</artifactId>
|
|
|
|
|
<version>1.3.8.RELEASE</version>
|
|
|
|
|
<!-- 引入Spring Boot的Redis启动器依赖,指定了特定的版本号,用于在项目中集成Redis进行缓存、消息队列等相关功能,这里版本号是当时配置时选择的旧版本(1.3.8.RELEASE)。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.session</groupId>
|
|
|
|
|
<artifactId>spring-session-data-redis</artifactId>
|
|
|
|
|
<!-- 引入Spring Session与Redis集成相关的依赖,用于实现基于Redis的会话管理等功能。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
|
|
<version>1.2.32</version>
|
|
|
|
|
<!-- 引入阿里巴巴的FastJSON库,用于JSON数据的序列化和反序列化操作,方便在项目中处理JSON格式的数据。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
|
|
<artifactId>shiro-spring</artifactId>
|
|
|
|
|
<version>1.2.5</version>
|
|
|
|
|
<!-- 引入Apache Shiro与Spring集成的依赖,用于实现安全认证、授权等功能,版本号为1.2.5。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.shiro</groupId>
|
|
|
|
|
<artifactId>shiro-ehcache</artifactId>
|
|
|
|
|
<version>1.2.5</version>
|
|
|
|
|
<!-- 引入Apache Shiro与Ehcache集成的依赖,可能用于缓存Shiro相关的一些数据,如授权信息等,版本号与前面Shiro相关依赖一致为1.2.5。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.theborakompanioni</groupId>
|
|
|
|
|
<artifactId>thymeleaf-extras-shiro</artifactId>
|
|
|
|
|
<version>1.2.1</version>
|
|
|
|
|
<!-- 引入用于在Thymeleaf模板中集成Shiro功能的扩展依赖,方便在页面模板中进行权限相关的控制等操作,版本号为1.2.1。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>cn.songxinqiang</groupId>
|
|
|
|
|
<artifactId>com.baidu.ueditor</artifactId>
|
|
|
|
|
<version>1.1.2-edit-1.0</version>
|
|
|
|
|
<!-- 引入百度UEditor相关的依赖,可能用于在项目中实现富文本编辑器等功能,具体版本号为1.1.2-edit-1.0。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>commons-codec</groupId>
|
|
|
|
|
<artifactId>commons-codec</artifactId>
|
|
|
|
|
<!-- 引入Apache Commons Codec库,提供了一些常用的编码解码相关的工具类,比如Base64编码等功能。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>commons-fileupload</groupId>
|
|
|
|
|
<artifactId>commons-fileupload</artifactId>
|
|
|
|
|
<version>1.3.1</version>
|
|
|
|
|
<!-- 引入Apache Commons FileUpload库,用于处理文件上传功能,指定了版本号为1.3.1。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
|
<!-- 引入Apache Commons IO库,提供了很多方便的IO操作相关的工具类,用于文件、流等操作。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.penggle</groupId>
|
|
|
|
@ -114,41 +151,51 @@
|
|
|
|
|
<exclusion>
|
|
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
|
<!-- 排除该依赖传递引入的javax.servlet-api依赖,可能是项目中已经有其他方式管理了这个依赖或者不需要该版本的此依赖。 -->
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
|
|
|
|
<!-- 引入用于生成验证码的Kaptcha库,版本号为2.3.2。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
<artifactId>druid</artifactId>
|
|
|
|
|
<version>1.0.18</version>
|
|
|
|
|
<!-- 引入阿里巴巴的Druid数据库连接池依赖,用于管理数据库连接,提高连接的性能和复用等,版本号为1.0.18。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
<!-- 引入MySQL的Java驱动依赖,用于在项目中连接MySQL数据库进行数据交互操作。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
|
<version>3.6</version>
|
|
|
|
|
<!-- 引入Apache Commons Lang3库,提供了很多常用的工具方法,用于字符串、日期、对象等操作,版本号为3.6。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.aliyun</groupId>
|
|
|
|
|
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
|
|
|
|
|
<version>1.0.0</version>
|
|
|
|
|
<!-- 引入阿里云短信服务(Dysmsapi)的Java SDK依赖,用于在项目中实现发送短信等相关功能,版本号为1.0.0。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.aliyun</groupId>
|
|
|
|
|
<artifactId>aliyun-java-sdk-core</artifactId>
|
|
|
|
|
<version>3.2.8</version>
|
|
|
|
|
<!-- 引入阿里云Java SDK的核心依赖,其他阿里云相关的服务SDK可能依赖于此核心库,版本号为3.2.8。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
|
<artifactId>commons-email</artifactId>
|
|
|
|
|
<version>1.5</version>
|
|
|
|
|
<!-- 引入Apache Commons Email库,用于在项目中实现发送电子邮件等相关功能,版本号为1.5。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<!-- dependencyManagement元素用于管理项目依赖的版本,它不会实际引入依赖,而是定义了依赖的版本号等信息,
|
|
|
|
|
供子项目或者当前项目中依赖声明时使用,起到统一管理依赖版本的作用。 -->
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
@ -156,16 +203,21 @@
|
|
|
|
|
<version>Camden.SR6</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
<!-- 引入Spring Cloud的依赖管理配置,通过import作用域将指定版本(Camden.SR6)的Spring Cloud相关依赖的管理配置引入到当前项目中,
|
|
|
|
|
这样项目中再引入Spring Cloud相关依赖时就可以不用再指定版本号了,遵循这里定义的版本管理。 -->
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<!-- build元素用于配置项目的构建相关信息,比如构建插件、最终生成的项目名称等。 -->
|
|
|
|
|
<finalName>tamguo</finalName>
|
|
|
|
|
<!-- 指定项目最终构建生成的文件名(不包含扩展名),这里设置为tamguo,最终可能生成类似tamguo.jar或者tamguo.war等文件。 -->
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
<!-- 引入Spring Boot的Maven插件,用于将Spring Boot项目进行打包、运行等构建操作,是Spring Boot项目构建的关键插件。 -->
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|