mirror of
https://gitee.com/dromara/easy-es.git
synced 2025-12-06 17:18:57 +08:00
v2.0.0-beta5
多数据源代码合并及优化
This commit is contained in:
parent
ed4ee24fd7
commit
1d8919ac6d
@ -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> {
|
||||
}
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user