|
@@ -0,0 +1,137 @@
|
|
|
|
|
+<?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">
|
|
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
|
|
+
|
|
|
|
|
+ <groupId>space.anyi</groupId>
|
|
|
|
|
+ <artifactId>SSM_template</artifactId>
|
|
|
|
|
+ <version>1.0-SNAPSHOT</version>
|
|
|
|
|
+ <packaging>war</packaging>
|
|
|
|
|
+ <description>SSM框架的模板</description>
|
|
|
|
|
+
|
|
|
|
|
+ <properties>
|
|
|
|
|
+ <maven.compiler.source>8</maven.compiler.source>
|
|
|
|
|
+ <maven.compiler.target>8</maven.compiler.target>
|
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
+ <!-- 定义依赖版本,便于统一管理 -->
|
|
|
|
|
+ <spring.version>5.3.31</spring.version>
|
|
|
|
|
+ <!-- Servlet和JSP相关API版本(对应Java EE 8) -->
|
|
|
|
|
+ <javax.servlet.version>4.0.1</javax.servlet.version>
|
|
|
|
|
+ <javax.servlet.jsp.version>2.3.3</javax.servlet.jsp.version>
|
|
|
|
|
+ <!-- JSTL标签库版本 -->
|
|
|
|
|
+ <jstl.version>1.2.2</jstl.version>
|
|
|
|
|
+ <thymeleaf.version>3.0.12.RELEASE</thymeleaf.version>
|
|
|
|
|
+ <mybatis.version>3.5.6</mybatis.version>
|
|
|
|
|
+ <mybatis-spring.version>2.0.6</mybatis-spring.version>
|
|
|
|
|
+ <mysql.version>8.0.25</mysql.version>
|
|
|
|
|
+ </properties>
|
|
|
|
|
+
|
|
|
|
|
+ <dependencies>
|
|
|
|
|
+ <!-- Spring核心容器 -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
|
+ <artifactId>spring-context</artifactId>
|
|
|
|
|
+ <version>${spring.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Spring Web MVC(如果你的项目是Web项目) -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
|
+ <artifactId>spring-webmvc</artifactId>
|
|
|
|
|
+ <version>${spring.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
|
+ <artifactId>spring-jdbc</artifactId>
|
|
|
|
|
+ <version>${spring.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ <!-- Spring 事务支持(必须!) -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
|
+ <artifactId>spring-tx</artifactId>
|
|
|
|
|
+ <version>${spring.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Spring AOP 支持(事务注解依赖) -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
|
+ <artifactId>spring-aop</artifactId>
|
|
|
|
|
+ <version>${spring.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ <!-- AspectJ(如果使用 @Transactional 需要) -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.aspectj</groupId>
|
|
|
|
|
+ <artifactId>aspectjweaver</artifactId>
|
|
|
|
|
+ <version>1.9.7</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Thymeleaf 核心库 -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.thymeleaf</groupId>
|
|
|
|
|
+ <artifactId>thymeleaf</artifactId>
|
|
|
|
|
+ <version>${thymeleaf.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Thymeleaf 与 Spring 5 集成包(Java 8 环境使用此版本) -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.thymeleaf</groupId>
|
|
|
|
|
+ <artifactId>thymeleaf-spring5</artifactId>
|
|
|
|
|
+ <version>${thymeleaf.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- ========== MyBatis 依赖 ========== -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.mybatis</groupId>
|
|
|
|
|
+ <artifactId>mybatis</artifactId>
|
|
|
|
|
+ <version>${mybatis.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.mybatis</groupId>
|
|
|
|
|
+ <artifactId>mybatis-spring</artifactId>
|
|
|
|
|
+ <version>${mybatis-spring.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- ========== 数据库驱动 ========== -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>mysql</groupId>
|
|
|
|
|
+ <artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
+ <version>${mysql.version}</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ <!-- 连接池(推荐) -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
|
|
+ <artifactId>druid</artifactId>
|
|
|
|
|
+ <version>1.2.8</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ <!-- ========== Servlet API(provided) ========== -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>javax.servlet</groupId>
|
|
|
|
|
+ <artifactId>javax.servlet-api</artifactId>
|
|
|
|
|
+ <version>4.0.1</version>
|
|
|
|
|
+ <scope>provided</scope>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- ========== 日志 ========== -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>ch.qos.logback</groupId>
|
|
|
|
|
+ <artifactId>logback-classic</artifactId>
|
|
|
|
|
+ <version>1.2.11</version>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- ========== 测试 ========== -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.junit.jupiter</groupId>
|
|
|
|
|
+ <artifactId>junit-jupiter</artifactId>
|
|
|
|
|
+ <version>5.10.0</version>
|
|
|
|
|
+ <scope>test</scope>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
|
|
+ <artifactId>spring-test</artifactId>
|
|
|
|
|
+ <version>${spring.version}</version>
|
|
|
|
|
+ <scope>test</scope>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ </dependencies>
|
|
|
|
|
+
|
|
|
|
|
+</project>
|