2026-03-02 16:07:08 +08:00
|
|
|
|
<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>
|
|
|
|
|
|
<parent>
|
|
|
|
|
|
<groupId>cn.mayiming</groupId>
|
|
|
|
|
|
<artifactId>javamemories-parent</artifactId>
|
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
|
|
<artifactId>user-service</artifactId>
|
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
|
|
|
|
<name>user-service</name>
|
|
|
|
|
|
<url>http://maven.apache.org</url>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
2026-03-02 17:07:12 +08:00
|
|
|
|
<mysql.version>8.0.33</mysql.version>
|
|
|
|
|
|
<!-- 显式指定 MyBatis 版本(与 Spring Boot 3.2.3 兼容) -->
|
|
|
|
|
|
<mybatis-spring-boot-starter.version>3.0.3</mybatis-spring-boot-starter.version>
|
2026-03-02 16:07:08 +08:00
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<dependency>
|
2026-03-02 17:07:12 +08:00
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
2026-03-02 16:07:08 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2026-03-02 17:07:12 +08:00
|
|
|
|
<!-- 可选:Nacos 配置管理(从 Nacos 读取配置文件) -->
|
2026-03-02 16:07:08 +08:00
|
|
|
|
<dependency>
|
2026-03-02 17:07:12 +08:00
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
2026-03-02 16:07:08 +08:00
|
|
|
|
</dependency>
|
2026-03-02 18:04:06 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- MyBatis 版本管理 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- MySQL 驱动(显式绑定版本) -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.mysql</groupId>
|
|
|
|
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
|
|
|
|
<scope>runtime</scope>
|
|
|
|
|
|
</dependency>
|
2026-03-02 16:07:08 +08:00
|
|
|
|
</dependencies>
|
2026-03-02 17:07:12 +08:00
|
|
|
|
<!-- 构建配置:确保编译和打包正常 -->
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
|
<version>3.2.3</version>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>repackage</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
</project>
|