fix:修复redis配置错误导致无法启动
This commit is contained in:
parent
7ca8231070
commit
e9c32bb4cb
@ -199,7 +199,6 @@ public class SjzyTrackApplicationModule : AbpModule
|
||||
var connectionString = $"{configuration["Redis:Host"]}" +
|
||||
$",password={configuration["Redis:Password"]}" +
|
||||
$",defaultDatabase={configuration["Redis:Database"]}" +
|
||||
$",connectTimeout={configuration["Redis:IdleTimeout"]}" +
|
||||
$",abortConnect=false";
|
||||
// 注册Redis服务
|
||||
context.Services.AddStackExchangeRedisExtensions<SystemTextJsonSerializer>(new RedisConfiguration
|
||||
@ -209,7 +208,7 @@ public class SjzyTrackApplicationModule : AbpModule
|
||||
ConnectionString = connectionString,
|
||||
AbortOnConnectFail = false,
|
||||
AllowAdmin = true,
|
||||
ConnectTimeout = 5000,
|
||||
//ConnectTimeout = 5000,
|
||||
PoolSize = 5,
|
||||
ConnectRetry = 3,
|
||||
IsDefault = false,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user