提取常量配置信息
This commit is contained in:
5
pom.xml
5
pom.xml
@@ -52,6 +52,11 @@
|
|||||||
<artifactId>xtools-app-common-call</artifactId>
|
<artifactId>xtools-app-common-call</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.xujun</groupId>
|
||||||
|
<artifactId>xtools-app-common-config</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.xujun</groupId>
|
<groupId>org.xujun</groupId>
|
||||||
<artifactId>xtools-app-common-jar</artifactId>
|
<artifactId>xtools-app-common-jar</artifactId>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
<module>xtools-app-common-mq</module>
|
<module>xtools-app-common-mq</module>
|
||||||
<module>xtools-app-common-sentinel</module>
|
<module>xtools-app-common-sentinel</module>
|
||||||
<module>xtools-app-common-task</module>
|
<module>xtools-app-common-task</module>
|
||||||
|
<module>xtools-app-common-config</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@@ -30,6 +30,13 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
<!-- xtools end -->
|
<!-- xtools end -->
|
||||||
|
|
||||||
|
<!-- 项目模块 begin -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.xujun</groupId>
|
||||||
|
<artifactId>xtools-app-common-config</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<!-- 项目模块 end -->
|
||||||
|
|
||||||
<!-- aop -->
|
<!-- aop -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.aspectj</groupId>
|
<groupId>org.aspectj</groupId>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package xtools.app.common.cache.enums;
|
package xtools.app.common.cache.enums;
|
||||||
|
|
||||||
|
import xtools.app.common.config.AppCommonConfig;
|
||||||
import xtools.boot.cache.redis.enums.BaseCacheEnum;
|
import xtools.boot.cache.redis.enums.BaseCacheEnum;
|
||||||
import xtools.core.extend.TemplateUtils;
|
import xtools.core.extend.TemplateUtils;
|
||||||
|
|
||||||
@@ -52,7 +53,7 @@ public enum AppCache implements BaseCacheEnum {
|
|||||||
/**
|
/**
|
||||||
* 系统缓存前缀
|
* 系统缓存前缀
|
||||||
*/
|
*/
|
||||||
private final static String SYS_CACHE_PREFIX = "xtools-app:";
|
private final static String SYS_CACHE_PREFIX = AppCommonConfig.APP_CACHE_PREFIX;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* key
|
* key
|
||||||
|
|||||||
14
xtools-app-common/xtools-app-common-config/pom.xml
Normal file
14
xtools-app-common/xtools-app-common-config/pom.xml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?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>org.xujun</groupId>
|
||||||
|
<artifactId>xtools-app-common</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
</parent>
|
||||||
|
<artifactId>xtools-app-common-config</artifactId>
|
||||||
|
|
||||||
|
|
||||||
|
</project>
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package xtools.app.common.config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>Title : AppCommonConfig</p>
|
||||||
|
* <p>Description : AppCommonConfig</p>
|
||||||
|
* <p>DevelopTools : Idea_x64_v2026.1</p>
|
||||||
|
* <p>DevelopSystem : macOS Sequoia 15.7.5</p>
|
||||||
|
* <p>Company : org.xujun</p>
|
||||||
|
*
|
||||||
|
* @author : XuJun
|
||||||
|
* @version : 1.0.0
|
||||||
|
* @date : 2026/4/22 11:04
|
||||||
|
*/
|
||||||
|
public class AppCommonConfig {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统日志索引名称
|
||||||
|
*/
|
||||||
|
public static final String APP_SYS_LOG_ES_INDEX_NAME = "sys-log";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统缓存前缀
|
||||||
|
*/
|
||||||
|
public final static String APP_CACHE_PREFIX = "xtools-app:";
|
||||||
|
|
||||||
|
}
|
||||||
@@ -13,6 +13,11 @@
|
|||||||
<!-- 依赖 -->
|
<!-- 依赖 -->
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<!-- 项目模块 begin -->
|
<!-- 项目模块 begin -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.xujun</groupId>
|
||||||
|
<artifactId>xtools-app-common-config</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.xujun</groupId>
|
<groupId>org.xujun</groupId>
|
||||||
<artifactId>xtools-app-sys-biz</artifactId>
|
<artifactId>xtools-app-sys-biz</artifactId>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import org.springframework.data.annotation.Id;
|
|||||||
import org.springframework.data.elasticsearch.annotations.Document;
|
import org.springframework.data.elasticsearch.annotations.Document;
|
||||||
import org.springframework.data.elasticsearch.annotations.Field;
|
import org.springframework.data.elasticsearch.annotations.Field;
|
||||||
import org.springframework.data.elasticsearch.annotations.FieldType;
|
import org.springframework.data.elasticsearch.annotations.FieldType;
|
||||||
|
import xtools.app.common.config.AppCommonConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Title : EsSysLog</p>
|
* <p>Title : EsSysLog</p>
|
||||||
@@ -23,8 +24,8 @@ public class EsSysLog {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* ES索引名称
|
* ES索引名称
|
||||||
**/
|
*/
|
||||||
public static final String INDEX_NAME = "log-sys_v16";
|
public static final String INDEX_NAME = AppCommonConfig.APP_SYS_LOG_ES_INDEX_NAME;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键 ID
|
* 主键 ID
|
||||||
|
|||||||
Reference in New Issue
Block a user