refactor: 修改默认数据库链接配置
This commit is contained in:
@@ -6,7 +6,7 @@ datasource:
|
|||||||
# 数据库链接填写格式:
|
# 数据库链接填写格式:
|
||||||
# jdbc:mysql://{数据库地址}:{数据库端口}/{使用的库名}?参数
|
# jdbc:mysql://{数据库地址}:{数据库端口}/{使用的库名}?参数
|
||||||
# 除非你知道自己在做什么,否则不建议随意更改参数
|
# 除非你知道自己在做什么,否则不建议随意更改参数
|
||||||
url: "jdbc:mysql://localhost:3306/Test1?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true"
|
url: "jdbc:mysql://localhost:3306/Test?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true"
|
||||||
# 如果你不需要做多端跨服,那么请使用 sqlite 作本地数据库
|
# 如果你不需要做多端跨服,那么请使用 sqlite 作本地数据库
|
||||||
# driver: "org.sqlite.JDBC"
|
# driver: "org.sqlite.JDBC"
|
||||||
# url: "jdbc:sqlite:./plugins/HamsterCore/database.db"
|
# url: "jdbc:sqlite:./plugins/HamsterCore/database.db"
|
||||||
|
@@ -5,7 +5,7 @@ datasource:
|
|||||||
# 数据库链接填写格式:
|
# 数据库链接填写格式:
|
||||||
# jdbc:mysql://{数据库地址}:{数据库端口}/{使用的库名}?参数
|
# jdbc:mysql://{数据库地址}:{数据库端口}/{使用的库名}?参数
|
||||||
# 除非你知道自己在做什么,否则不建议随意更改参数
|
# 除非你知道自己在做什么,否则不建议随意更改参数
|
||||||
url: "jdbc:mysql://localhost:3306/Test1?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true"
|
url: "jdbc:mysql://localhost:3306/Test?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true"
|
||||||
# 用户名
|
# 用户名
|
||||||
username: "root"
|
username: "root"
|
||||||
# 密码
|
# 密码
|
||||||
|
@@ -1,36 +0,0 @@
|
|||||||
singleServerConfig:
|
|
||||||
address: "redis://localhost:6379"
|
|
||||||
password: "Reids123.."
|
|
||||||
username: "default"
|
|
||||||
database: 1
|
|
||||||
clientName: ""
|
|
||||||
idleConnectionTimeout: 10000
|
|
||||||
connectTimeout: 10000
|
|
||||||
timeout: 3000
|
|
||||||
retryAttempts: 3
|
|
||||||
retryInterval: 1500
|
|
||||||
subscriptionsPerConnection: 5
|
|
||||||
sslEnableEndpointIdentification: true
|
|
||||||
sslProvider: "JDK"
|
|
||||||
pingConnectionInterval: 30000
|
|
||||||
keepAlive: false
|
|
||||||
tcpNoDelay: true
|
|
||||||
subscriptionConnectionMinimumIdleSize: 1
|
|
||||||
subscriptionConnectionPoolSize: 50
|
|
||||||
connectionMinimumIdleSize: 1
|
|
||||||
connectionPoolSize: 10
|
|
||||||
dnsMonitoringInterval: 5000
|
|
||||||
threads: 4
|
|
||||||
nettyThreads: 8
|
|
||||||
referenceEnabled: true
|
|
||||||
lockWatchdogTimeout: 30000
|
|
||||||
checkLockSyncedSlaves: true
|
|
||||||
slavesSyncTimeout: 1000
|
|
||||||
reliableTopicWatchdogTimeout: 600000
|
|
||||||
keepPubSubOrder: true
|
|
||||||
useScriptCache: false
|
|
||||||
minCleanUpDelay: 5
|
|
||||||
maxCleanUpDelay: 1800
|
|
||||||
cleanUpKeysAmount: 100
|
|
||||||
useThreadClassLoader: true
|
|
||||||
lazyInitialization: false
|
|
Reference in New Issue
Block a user