mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-08 07:01:37 +08:00
fix(cache/redisson): 修复嵌套属性未添加注解导致无法注入的问题
This commit is contained in:
@@ -20,6 +20,7 @@ import org.redisson.config.ClusterServersConfig;
|
|||||||
import org.redisson.config.SentinelServersConfig;
|
import org.redisson.config.SentinelServersConfig;
|
||||||
import org.redisson.config.SingleServerConfig;
|
import org.redisson.config.SingleServerConfig;
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redisson 配置属性
|
* Redisson 配置属性
|
||||||
@@ -44,16 +45,19 @@ public class RedissonProperties {
|
|||||||
/**
|
/**
|
||||||
* 单机服务配置
|
* 单机服务配置
|
||||||
*/
|
*/
|
||||||
|
@NestedConfigurationProperty
|
||||||
private SingleServerConfig singleServerConfig;
|
private SingleServerConfig singleServerConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 集群服务配置
|
* 集群服务配置
|
||||||
*/
|
*/
|
||||||
|
@NestedConfigurationProperty
|
||||||
private ClusterServersConfig clusterServersConfig;
|
private ClusterServersConfig clusterServersConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 哨兵服务配置
|
* 哨兵服务配置
|
||||||
*/
|
*/
|
||||||
|
@NestedConfigurationProperty
|
||||||
private SentinelServersConfig sentinelServersConfig;
|
private SentinelServersConfig sentinelServersConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user