update 删除一些基本用不上的配置 简化折叠一些配置

2.X
疯狂的狮子li 3 years ago
parent cc963acdbe
commit 72da88f2fa

@ -114,8 +114,6 @@ redisson:
threads: 4
# Netty线程池数量
nettyThreads: 8
# 传输模式
transportMode: "NIO"
# 单节点配置
singleServerConfig:
# 客户端名称
@ -128,10 +126,6 @@ redisson:
idleConnectionTimeout: 10000
# 命令等待超时,单位:毫秒
timeout: 3000
# 如果尝试在此限制之内发送成功,则开始启用 timeout 计时。
retryAttempts: 3
# 命令重试发送时间间隔,单位:毫秒
retryInterval: 1500
# 发布和订阅连接池大小
subscriptionConnectionPoolSize: 50
# redisson 缓存配置
@ -188,16 +182,12 @@ sa-token:
is-concurrent: true
# 在多人登录同一账号时是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
is-share: false
# 是否尝试从请求体里读取token
is-read-body: false
# 是否尝试从header里读取token
is-read-head: true
# 是否尝试从cookie里读取token
is-read-cookie: false
# token前缀
token-prefix: "Bearer"
# token风格
token-style: uuid
# jwt秘钥
jwt-secret-key: abcdefghijklmnopqrstuvwxyz
# 是否输出操作日志

@ -58,8 +58,7 @@ public class RedisConfiguration extends CachingConfigurerSupport {
Config config = new Config();
config.setThreads(redissonProperties.getThreads())
.setNettyThreads(redissonProperties.getNettyThreads())
.setCodec(JsonJacksonCodec.INSTANCE)
.setTransportMode(redissonProperties.getTransportMode());
.setCodec(JsonJacksonCodec.INSTANCE);
RedissonProperties.SingleServerConfig singleServerConfig = redissonProperties.getSingleServerConfig();
if (ObjectUtil.isNotNull(singleServerConfig)) {
@ -70,8 +69,6 @@ public class RedisConfiguration extends CachingConfigurerSupport {
.setDatabase(redisProperties.getDatabase())
.setPassword(StringUtils.isNotBlank(redisProperties.getPassword()) ? redisProperties.getPassword() : null)
.setTimeout(singleServerConfig.getTimeout())
.setRetryAttempts(singleServerConfig.getRetryAttempts())
.setRetryInterval(singleServerConfig.getRetryInterval())
.setClientName(singleServerConfig.getClientName())
.setIdleConnectionTimeout(singleServerConfig.getIdleConnectionTimeout())
.setSubscriptionConnectionPoolSize(singleServerConfig.getSubscriptionConnectionPoolSize())
@ -92,11 +89,8 @@ public class RedisConfiguration extends CachingConfigurerSupport {
.setConnectTimeout(((Long) redisProperties.getTimeout().toMillis()).intValue())
.setPassword(StringUtils.isNotBlank(redisProperties.getPassword()) ? redisProperties.getPassword() : null)
.setTimeout(clusterServersConfig.getTimeout())
.setRetryAttempts(clusterServersConfig.getRetryAttempts())
.setRetryInterval(clusterServersConfig.getRetryInterval())
.setClientName(clusterServersConfig.getClientName())
.setIdleConnectionTimeout(clusterServersConfig.getIdleConnectionTimeout())
.setPingConnectionInterval(clusterServersConfig.getPingConnectionInterval())
.setSubscriptionConnectionPoolSize(clusterServersConfig.getSubscriptionConnectionPoolSize())
.setMasterConnectionMinimumIdleSize(clusterServersConfig.getMasterConnectionMinimumIdleSize())
.setMasterConnectionPoolSize(clusterServersConfig.getMasterConnectionPoolSize())
@ -149,8 +143,6 @@ public class RedisConfiguration extends CachingConfigurerSupport {
* threads: 16
* # Netty线
* nettyThreads: 32
* #
* transportMode: "NIO"
* #
* clusterServersConfig:
* #
@ -165,14 +157,8 @@ public class RedisConfiguration extends CachingConfigurerSupport {
* slaveConnectionPoolSize: 64
* #
* idleConnectionTimeout: 10000
* # ping
* pingConnectionInterval: 1000
* #
* timeout: 3000
* # timeout
* retryAttempts: 3
* #
* retryInterval: 1500
* #
* subscriptionConnectionPoolSize: 50
* #

@ -28,11 +28,6 @@ public class RedissonProperties {
*/
private int nettyThreads;
/**
*
*/
private TransportMode transportMode;
/**
*
*/
@ -77,16 +72,6 @@ public class RedissonProperties {
*/
private int timeout;
/**
* timeout
*/
private int retryAttempts;
/**
*
*/
private int retryInterval;
/**
*
*/
@ -128,26 +113,11 @@ public class RedissonProperties {
*/
private int idleConnectionTimeout;
/**
* ping
*/
private int pingConnectionInterval;
/**
*
*/
private int timeout;
/**
* timeout
*/
private int retryAttempts;
/**
*
*/
private int retryInterval;
/**
*
*/

Loading…
Cancel
Save