2025-12-03 14:54:47 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2025-12-02 17:04:38 +08:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2025-12-03 14:54:47 +08:00
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
|
|
|
|
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2025-12-02 17:04:38 +08:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2025-12-03 14:54:47 +08:00
|
|
|
|
2025-12-02 17:04:38 +08:00
|
|
|
<groupId>com.campus</groupId>
|
|
|
|
|
<artifactId>campus-attendance</artifactId>
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
<packaging>war</packaging>
|
|
|
|
|
|
|
|
|
|
<properties>
|
2025-12-03 14:54:47 +08:00
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
|
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
|
|
|
<spring.version>5.3.23</spring.version>
|
|
|
|
|
<mybatis.version>3.5.11</mybatis.version>
|
|
|
|
|
<mybatis.spring.version>2.0.7</mybatis.spring.version> <!-- 修正后的行 -->
|
2025-12-02 17:04:38 +08:00
|
|
|
</properties>
|
|
|
|
|
|
2025-12-03 14:54:47 +08:00
|
|
|
|
2025-12-02 17:04:38 +08:00
|
|
|
<dependencies>
|
2025-12-03 14:54:47 +08:00
|
|
|
<!-- Spring -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
|
<artifactId>spring-context</artifactId>
|
|
|
|
|
<version>${spring.version}</version>
|
|
|
|
|
</dependency>
|
2025-12-02 17:04:38 +08:00
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<!-- MyBatis -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.mybatis</groupId>
|
|
|
|
|
<artifactId>mybatis</artifactId>
|
|
|
|
|
<version>${mybatis.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.mybatis</groupId>
|
2025-12-03 14:54:47 +08:00
|
|
|
<artifactId>mybatis-spring</artifactId>
|
|
|
|
|
<version>${mybatis.spring.version}</version>
|
2025-12-02 17:04:38 +08:00
|
|
|
</dependency>
|
|
|
|
|
|
2025-12-03 14:54:47 +08:00
|
|
|
<!-- 数据库 -->
|
2025-12-02 17:04:38 +08:00
|
|
|
<dependency>
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
2025-12-03 14:54:47 +08:00
|
|
|
<version>8.0.33</version>
|
2025-12-02 17:04:38 +08:00
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
|
<artifactId>druid</artifactId>
|
2025-12-03 14:54:47 +08:00
|
|
|
<version>1.2.15</version>
|
2025-12-02 17:04:38 +08:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- Servlet API -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
|
|
|
<version>4.0.1</version>
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
</dependency>
|
2025-12-03 14:54:47 +08:00
|
|
|
<dependency>
|
|
|
|
|
<groupId>javax.servlet.jsp</groupId>
|
|
|
|
|
<artifactId>javax.servlet.jsp-api</artifactId>
|
|
|
|
|
<version>2.3.3</version>
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>jstl</groupId>
|
|
|
|
|
<artifactId>jstl</artifactId>
|
|
|
|
|
<version>1.2</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<!-- JSON -->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
|
<version>2.14.1</version>
|
|
|
|
|
</dependency>
|
2025-12-02 17:04:38 +08:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<finalName>campus-attendance</finalName>
|
|
|
|
|
<plugins>
|
2025-12-03 14:54:47 +08:00
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
|
<version>3.3.2</version>
|
|
|
|
|
</plugin>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<version>3.10.1</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<source>1.8</source>
|
|
|
|
|
<target>1.8</target>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2025-12-02 17:04:38 +08:00
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2025-12-03 14:54:47 +08:00
|
|
|
<version>3.10.1</version>
|
2025-12-02 17:04:38 +08:00
|
|
|
<configuration>
|
2025-12-03 14:54:47 +08:00
|
|
|
<source>17</source>
|
|
|
|
|
<target>17</target>
|
|
|
|
|
<!-- 新增 JDK 17 编译参数 -->
|
|
|
|
|
<compilerArgs>
|
|
|
|
|
<arg>--enable-preview</arg>
|
|
|
|
|
</compilerArgs>
|
2025-12-02 17:04:38 +08:00
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
</project>
|