【8.1.0】【config】整理配置模块的依赖,简化memory和redis两个模块

pull/60/head
fengshuonan 2024-01-19 16:02:58 +08:00
parent 7c5aa71bcd
commit 8e96e3af19
9 changed files with 24 additions and 55 deletions

View File

@ -24,20 +24,17 @@
<version>${roses.version}</version> <version>${roses.version}</version>
</dependency> </dependency>
<!-- redis,使用jedis客户端排除lettuce --> <!--redis缓存配置-->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>cn.stylefeng.roses</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId> <artifactId>cache-api</artifactId>
<exclusions> <version>${roses.version}</version>
<exclusion>
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>redis.clients</groupId> <groupId>cn.stylefeng.roses</groupId>
<artifactId>jedis</artifactId> <artifactId>cache-sdk-redis</artifactId>
<version>${roses.version}</version>
<optional>true</optional>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -1,3 +0,0 @@
配置模块的spring boot自动加载模块
基于内存实现

View File

@ -1,36 +0,0 @@
<?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.stylefeng.roses</groupId>
<artifactId>kernel-d-config</artifactId>
<version>8.1.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>config-spring-boot-starter-redis</artifactId>
<packaging>jar</packaging>
<dependencies>
<!--config包含的业务模块-->
<dependency>
<groupId>cn.stylefeng.roses</groupId>
<artifactId>config-business</artifactId>
<version>${roses.version}</version>
</dependency>
<!--基于Redis的缓存实现-->
<dependency>
<groupId>cn.stylefeng.roses</groupId>
<artifactId>config-sdk-redis</artifactId>
<version>${roses.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -1,2 +0,0 @@
org.springframework.context.ApplicationListener=\
cn.stylefeng.roses.kernel.config.modular.listener.ConfigInitListener

View File

@ -11,7 +11,7 @@
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<artifactId>config-spring-boot-starter-memory</artifactId> <artifactId>config-spring-boot-starter</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
@ -24,6 +24,13 @@
<version>${roses.version}</version> <version>${roses.version}</version>
</dependency> </dependency>
<!--基于Redis的缓存实现-->
<dependency>
<groupId>cn.stylefeng.roses</groupId>
<artifactId>config-sdk-redis</artifactId>
<version>${roses.version}</version>
</dependency>
<!--基于内存的配置存储实现--> <!--基于内存的配置存储实现-->
<dependency> <dependency>
<groupId>cn.stylefeng.roses</groupId> <groupId>cn.stylefeng.roses</groupId>

View File

@ -20,8 +20,7 @@
<module>config-sdk-map</module> <module>config-sdk-map</module>
<module>config-sdk-redis</module> <module>config-sdk-redis</module>
<module>config-business</module> <module>config-business</module>
<module>config-spring-boot-starter-memory</module> <module>config-spring-boot-starter</module>
<module>config-spring-boot-starter-redis</module>
</modules> </modules>
<dependencies> <dependencies>

View File

@ -54,6 +54,13 @@
<!--将常用的模块集成在system中主项目中保持简洁--> <!--将常用的模块集成在system中主项目中保持简洁-->
<!--sys_config表的配置系统配置维护-->
<dependency>
<groupId>cn.stylefeng.roses</groupId>
<artifactId>config-spring-boot-starter</artifactId>
<version>${roses.version}</version>
</dependency>
<!--认证和鉴权模块--> <!--认证和鉴权模块-->
<dependency> <dependency>
<groupId>cn.stylefeng.roses</groupId> <groupId>cn.stylefeng.roses</groupId>