mirror of
https://gitee.com/dromara/easy-es.git
synced 2025-12-08 01:59:18 +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;
|
package org.dromara.easyes.test.mapper;
|
||||||
|
|
||||||
|
import org.dromara.easyes.annotation.EsDS;
|
||||||
import org.dromara.easyes.core.core.BaseEsMapper;
|
import org.dromara.easyes.core.core.BaseEsMapper;
|
||||||
import org.dromara.easyes.test.entity.Document;
|
import org.dromara.easyes.test.entity.Document;
|
||||||
|
|
||||||
@ -8,5 +9,6 @@ import org.dromara.easyes.test.entity.Document;
|
|||||||
* <p>
|
* <p>
|
||||||
* Copyright © 2021 xpc1024 All Rights Reserved
|
* Copyright © 2021 xpc1024 All Rights Reserved
|
||||||
**/
|
**/
|
||||||
|
@EsDS("ds1")
|
||||||
public interface DocumentMapper extends BaseEsMapper<Document> {
|
public interface DocumentMapper extends BaseEsMapper<Document> {
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
easy-es:
|
easy-es:
|
||||||
# enable: true
|
# enable: true
|
||||||
address: 10.20.64.228:9200
|
# address: 10.20.64.228:9200
|
||||||
schema: http
|
# schema: http
|
||||||
# username: elastic
|
# username: elastic
|
||||||
# password: WG7WVmuNMtM4GwNYkyWH
|
# password: WG7WVmuNMtM4GwNYkyWH
|
||||||
keep-alive-millis: 18000
|
keep-alive-millis: 18000
|
||||||
@ -17,6 +17,14 @@ easy-es:
|
|||||||
field-strategy: not_empty
|
field-strategy: not_empty
|
||||||
refresh-policy: immediate
|
refresh-policy: immediate
|
||||||
enable-track-total-hits: true
|
enable-track-total-hits: true
|
||||||
|
dynamic:
|
||||||
|
datasource:
|
||||||
|
ds1:
|
||||||
|
address: 10.20.64.228:9200
|
||||||
|
ds2:
|
||||||
|
address: 49.234.28.111:9200
|
||||||
|
#username: '若无可去掉此行'
|
||||||
|
#password: '若无可去掉此行'
|
||||||
#logging:
|
#logging:
|
||||||
# level:
|
# level:
|
||||||
# tracer: trace
|
# tracer: trace
|
||||||
Loading…
x
Reference in New Issue
Block a user