- 创建 SequenceAllocator 组件,支持号段预分配和分布式锁实时两种策略 - 使用 @Lock4j 注解实现分布式锁,通过自注入模式解决 Spring AOP 内部调用问题 - 本地 ConcurrentHashMap 缓存号段,AtomicLong 做内存 CAS 递增 - 补位格式化支持自定义补位字符和长度 - 重置维度支持 DAY/MONTH/YEAR/GLOBAL - 添加 nl-spring-boot-starter-protection 依赖
135 lines
4.4 KiB
XML
135 lines
4.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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-module-base</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
|
|
<artifactId>nl-module-base-server</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>${project.artifactId}</name>
|
|
<description>
|
|
lms 模块下,我们放通用业务,支撑上层的核心业务。
|
|
功能点描述:
|
|
- xxx
|
|
- xxx
|
|
</description>
|
|
|
|
<dependencies>
|
|
<!-- Spring Cloud 基础 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-env</artifactId>
|
|
</dependency>
|
|
<!-- 依赖服务 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-module-base-api</artifactId>
|
|
<version>${revision}</version>
|
|
</dependency>
|
|
|
|
<!-- 业务组件 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-biz-data-permission</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-biz-tenant</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-biz-ip</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-protection</artifactId>
|
|
</dependency>
|
|
<!-- 需要时候自行引入 -->
|
|
|
|
<!-- Web 相关 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-security</artifactId>
|
|
</dependency>
|
|
|
|
<!-- DB 相关 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-mybatis</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-redis</artifactId>
|
|
</dependency>
|
|
|
|
<!-- RPC 远程调用相关 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-rpc</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Registry 注册中心相关 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Config 配置中心相关 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Job 定时任务相关 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-job</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 消息队列相关 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-mq</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 工具类相关 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-excel</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 监控相关 -->
|
|
<dependency>
|
|
<groupId>cn.nl.cloud</groupId>
|
|
<artifactId>nl-spring-boot-starter-monitor</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<!-- 设置构建的 jar 包名 -->
|
|
<finalName>${project.artifactId}</finalName>
|
|
<plugins>
|
|
<!-- 打包 -->
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>${spring.boot.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal> <!-- 将引入的 jar 打入其中 -->
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |