mirror of
https://github.com/201206030/novel.git
synced 2025-07-06 21:16:38 +00:00
fix: 分库分表功能失效
shardingsphere-jdbc-core-spring-boot-starter 依赖版本过低
This commit is contained in:
@ -65,6 +65,12 @@
|
||||
"name": "spring.elasticsearch.ssl.verification-mode",
|
||||
"type": "java.lang.String",
|
||||
"description": "设置 ssl 的认证模式,如果该配置项为 none ,说明不需要认证,信任所有的 ssl 证书."
|
||||
},
|
||||
{
|
||||
"defaultValue": true,
|
||||
"name": "spring.shardingsphere.enabled",
|
||||
"description": "Whether enable shardingsphere or not.",
|
||||
"type": "java.lang.Boolean"
|
||||
}
|
||||
]
|
||||
}
|
@ -39,14 +39,15 @@ spring:
|
||||
mode:
|
||||
# 单机模式
|
||||
type: Standalone
|
||||
# 元数据持久化
|
||||
repository:
|
||||
# 文件持久化
|
||||
type: File
|
||||
# 数据库持久化
|
||||
type: JDBC
|
||||
props:
|
||||
# 元数据存储路径
|
||||
path: .shardingsphere
|
||||
# 使用本地配置覆盖持久化配置
|
||||
overwrite: true
|
||||
# 元数据存储类型
|
||||
provider: H2
|
||||
jdbc_url: jdbc:h2:./.h2/shardingsphere
|
||||
|
||||
# 数据源配置
|
||||
datasource:
|
||||
names: ds_0
|
||||
@ -87,7 +88,7 @@ spring:
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
password: 123456
|
||||
password: test123456
|
||||
|
||||
# Elasticsearch 配置
|
||||
elasticsearch:
|
||||
|
Reference in New Issue
Block a user