105 lines
3.4 KiB
XML
105 lines
3.4 KiB
XML
<?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>
|
||
|
||
<!-- 项目基本信息 -->
|
||
<groupId>com.example</groupId>
|
||
<artifactId>springboot-hql-web</artifactId>
|
||
<version>1.0-SNAPSHOT</version>
|
||
<name>SpringBootHQLWeb</name>
|
||
<description>Spring Boot with HQL and Web support</description>
|
||
|
||
<!-- Java 版本 -->
|
||
<properties>
|
||
<java.version>1.8</java.version>
|
||
<spring-boot.version>2.6.13</spring-boot.version>
|
||
</properties>
|
||
|
||
<!-- 依赖管理 -->
|
||
<dependencyManagement>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-dependencies</artifactId>
|
||
<version>${spring-boot.version}</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
</dependencyManagement>
|
||
|
||
<!-- 项目依赖 -->
|
||
<dependencies>
|
||
<!-- Spring Boot Starter Web,用于REST API和MVC -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Spring Boot Starter Data JPA,包含Hibernate -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
||
</dependency>
|
||
|
||
<!-- MySQL 数据库驱动 -->
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
|
||
<!-- Spring Boot Starter Test,测试依赖 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!-- 京东依赖-->
|
||
<dependency>
|
||
<groupId>org.codehaus.jackson</groupId>
|
||
<artifactId>jackson-mapper-asl</artifactId>
|
||
<version>1.9.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.codehaus.jackson</groupId>
|
||
<artifactId>jackson-core-asl</artifactId>
|
||
<version>1.9.2</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-all</artifactId>
|
||
<version>5.8.8</version>
|
||
</dependency>
|
||
<!--fastjson-->
|
||
<dependency>
|
||
<groupId>com.alibaba.fastjson2</groupId>
|
||
<artifactId>fastjson2</artifactId>
|
||
<version>2.0.21</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<!-- Maven 插件 -->
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project>
|