- 添加对 han-note-distributed-id-generator-api 模块的依赖 - 实现 DistributedIdGeneratorRpcService 调用远程ID生成服务 - 替换用户注册时使用的Redis自增ID为RPC方式获取 - 删除原有从数据库获取用户ID的逻辑 - 更新pom.xml引入新的API依赖并管理版本
103 lines
3.5 KiB
XML
103 lines
3.5 KiB
XML
<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>com.hanserwei</groupId>
|
|
<artifactId>han-note-user</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
|
|
<!-- 打包方式 -->
|
|
<packaging>jar</packaging>
|
|
|
|
<artifactId>han-note-user-biz</artifactId>
|
|
<name>${project.artifactId}</name>
|
|
<description>用户服务业务模块</description>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>hanserwei-common</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 服务发现 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.mysql</groupId>
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.baomidou</groupId>
|
|
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>druid-spring-boot-3-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>hanserwei-spring-boot-starter-jackson</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>hanserwei-spring-boot-starter-biz-operationlog</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>hanserwei-spring-boot-starter-biz-context</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>han-note-oss-api</artifactId>
|
|
</dependency>
|
|
<!-- Redis -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
</dependency>
|
|
<!-- Redis 连接池 -->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-pool2</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>han-note-user-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.hanserwei</groupId>
|
|
<artifactId>han-note-distributed-id-generator-api</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|