v2.0.0-beta5

多数据源代码合并及优化
This commit is contained in:
xpc1024 2024-01-21 19:21:39 +08:00
parent ed4ee24fd7
commit 1d8919ac6d
2 changed files with 15 additions and 5 deletions

View File

@ -1,5 +1,6 @@
package org.dromara.easyes.test.mapper;
import org.dromara.easyes.annotation.EsDS;
import org.dromara.easyes.core.core.BaseEsMapper;
import org.dromara.easyes.test.entity.Document;
@ -8,5 +9,6 @@ import org.dromara.easyes.test.entity.Document;
* <p>
* Copyright © 2021 xpc1024 All Rights Reserved
**/
@EsDS("ds1")
public interface DocumentMapper extends BaseEsMapper<Document> {
}

View File

@ -1,9 +1,9 @@
easy-es:
# enable: true
address: 10.20.64.228:9200
schema: http
# username: elastic
# password: WG7WVmuNMtM4GwNYkyWH
# enable: true
# address: 10.20.64.228:9200
# schema: http
# username: elastic
# password: WG7WVmuNMtM4GwNYkyWH
keep-alive-millis: 18000
global-config:
i-kun-mode: true
@ -17,6 +17,14 @@ easy-es:
field-strategy: not_empty
refresh-policy: immediate
enable-track-total-hits: true
dynamic:
datasource:
ds1:
address: 10.20.64.228:9200
ds2:
address: 49.234.28.111:9200
#username: '若无可去掉此行'
#password: '若无可去掉此行'
#logging:
# level:
# tracer: trace