diff --git a/kernel-d-auth/auth-spring-boot-starter/pom.xml b/kernel-d-auth/auth-spring-boot-starter/pom.xml index db15186fd..52bb24eb7 100644 --- a/kernel-d-auth/auth-spring-boot-starter/pom.xml +++ b/kernel-d-auth/auth-spring-boot-starter/pom.xml @@ -34,7 +34,7 @@ cn.stylefeng.roses - config-spring-boot-starter + config-spring-boot-starter-memory ${roses.version} diff --git a/kernel-d-config/config-spring-boot-starter-memory/README.md b/kernel-d-config/config-spring-boot-starter-memory/README.md new file mode 100644 index 000000000..1ae3dfaa6 --- /dev/null +++ b/kernel-d-config/config-spring-boot-starter-memory/README.md @@ -0,0 +1,3 @@ +配置模块的spring boot自动加载模块 + +基于内存实现 \ No newline at end of file diff --git a/kernel-d-config/config-spring-boot-starter-memory/pom.xml b/kernel-d-config/config-spring-boot-starter-memory/pom.xml new file mode 100644 index 000000000..236108d3e --- /dev/null +++ b/kernel-d-config/config-spring-boot-starter-memory/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + + + cn.stylefeng.roses + kernel-d-config + 7.6.0 + ../pom.xml + + + config-spring-boot-starter-memory + + jar + + + + + + cn.stylefeng.roses + config-business + ${roses.version} + + + + + cn.stylefeng.roses + config-sdk-map + ${roses.version} + + + + + diff --git a/kernel-d-config/config-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/config/starter/GunsSysConfigAutoConfiguration.java b/kernel-d-config/config-spring-boot-starter-memory/src/main/java/cn/stylefeng/roses/kernel/config/starter/GunsSysConfigAutoConfiguration.java similarity index 100% rename from kernel-d-config/config-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/config/starter/GunsSysConfigAutoConfiguration.java rename to kernel-d-config/config-spring-boot-starter-memory/src/main/java/cn/stylefeng/roses/kernel/config/starter/GunsSysConfigAutoConfiguration.java diff --git a/kernel-d-config/config-spring-boot-starter/src/main/resources/META-INF/spring.factories b/kernel-d-config/config-spring-boot-starter-memory/src/main/resources/META-INF/spring.factories similarity index 100% rename from kernel-d-config/config-spring-boot-starter/src/main/resources/META-INF/spring.factories rename to kernel-d-config/config-spring-boot-starter-memory/src/main/resources/META-INF/spring.factories diff --git a/kernel-d-config/config-spring-boot-starter-redis/README.md b/kernel-d-config/config-spring-boot-starter-redis/README.md new file mode 100644 index 000000000..0cc4cfb8a --- /dev/null +++ b/kernel-d-config/config-spring-boot-starter-redis/README.md @@ -0,0 +1,3 @@ +配置模块的spring boot自动加载模块 + +基于Redis实现,用在分布式环境中 \ No newline at end of file diff --git a/kernel-d-config/config-spring-boot-starter/pom.xml b/kernel-d-config/config-spring-boot-starter-redis/pom.xml similarity index 73% rename from kernel-d-config/config-spring-boot-starter/pom.xml rename to kernel-d-config/config-spring-boot-starter-redis/pom.xml index 18e8dcdb2..357a8c1bb 100644 --- a/kernel-d-config/config-spring-boot-starter/pom.xml +++ b/kernel-d-config/config-spring-boot-starter-redis/pom.xml @@ -11,7 +11,7 @@ ../pom.xml - config-spring-boot-starter + config-spring-boot-starter-redis jar @@ -24,6 +24,13 @@ ${roses.version} + + + cn.stylefeng.roses + config-sdk-redis + ${roses.version} + + diff --git a/kernel-d-config/config-spring-boot-starter-redis/src/main/java/cn/stylefeng/roses/kernel/config/starter/GunsSysConfigAutoConfiguration.java b/kernel-d-config/config-spring-boot-starter-redis/src/main/java/cn/stylefeng/roses/kernel/config/starter/GunsSysConfigAutoConfiguration.java new file mode 100644 index 000000000..4eb25a990 --- /dev/null +++ b/kernel-d-config/config-spring-boot-starter-redis/src/main/java/cn/stylefeng/roses/kernel/config/starter/GunsSysConfigAutoConfiguration.java @@ -0,0 +1,38 @@ +/* + * Copyright [2020-2030] [https://www.stylefeng.cn] + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点: + * + * 1.请不要删除和修改根目录下的LICENSE文件。 + * 2.请不要删除和修改Guns源码头部的版权声明。 + * 3.请保留源码和相关描述文件的项目出处,作者声明等。 + * 4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns + * 5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns + * 6.若您的项目无法满足以上几点,可申请商业授权 + */ +package cn.stylefeng.roses.kernel.config.starter; + +import org.springframework.context.annotation.Configuration; + +/** + * 系统配置模块的自动配置类 + * + * @author fengshuonan + * @since 2020/11/30 22:24 + */ +@Configuration +public class GunsSysConfigAutoConfiguration { + +} diff --git a/kernel-d-config/config-spring-boot-starter-redis/src/main/resources/META-INF/spring.factories b/kernel-d-config/config-spring-boot-starter-redis/src/main/resources/META-INF/spring.factories new file mode 100644 index 000000000..c5d42e7da --- /dev/null +++ b/kernel-d-config/config-spring-boot-starter-redis/src/main/resources/META-INF/spring.factories @@ -0,0 +1,4 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ + cn.stylefeng.roses.kernel.config.starter.GunsSysConfigAutoConfiguration +org.springframework.context.ApplicationListener=\ + cn.stylefeng.roses.kernel.config.modular.listener.ConfigInitListener \ No newline at end of file diff --git a/kernel-d-config/config-spring-boot-starter/README.md b/kernel-d-config/config-spring-boot-starter/README.md deleted file mode 100644 index 778711c08..000000000 --- a/kernel-d-config/config-spring-boot-starter/README.md +++ /dev/null @@ -1 +0,0 @@ -配置模块的spring boot自动加载模块 \ No newline at end of file diff --git a/kernel-d-config/pom.xml b/kernel-d-config/pom.xml index 3fa360186..db69681f8 100644 --- a/kernel-d-config/pom.xml +++ b/kernel-d-config/pom.xml @@ -20,7 +20,8 @@ config-sdk-map config-sdk-redis config-business - config-spring-boot-starter + config-spring-boot-starter-memory + config-spring-boot-starter-redis