Authored by 张帅

线上es配置

... ... @@ -85,7 +85,7 @@ public class UserInfoDataSyncServiceImpl {
// 批量增加
BulkRequest bulkAddRequest = new BulkRequest();
for (UserInfo info : userInfoList) {
IndexRequest indexRequest = new IndexRequest("user", "userInfo", String.valueOf(info.getYoho_uid()));
IndexRequest indexRequest = new IndexRequest("grass", "userInfo", String.valueOf(info.getYoho_uid()));
indexRequest.source(JSON.toJSONString(info), XContentType.JSON);
bulkAddRequest.add(indexRequest);
}
... ...
... ... @@ -30,5 +30,12 @@ spring:
password: +BfhVxZQ4LuPKt+QxSy9naMwEu/zaKV31I9S8xDJIUA=
driver-class-name: com.mysql.jdbc.Driver
elasticSearch:
host: 10.66.107.6
port: 9200
client:
connectNum: 10
connectPerRoute: 50
logging:
config: classpath:logback-boot.xml
\ No newline at end of file
... ...
... ... @@ -27,7 +27,7 @@ spring:
driver-class-name: com.mysql.jdbc.Driver
yhCommunity:
url: jdbc:mysql://192.168.102.219:3306/test?useUnicode=true&characterEncoding=UTF-8
url: jdbc:mysql://192.168.102.219:3306/yh_community?useUnicode=true&characterEncoding=UTF-8
username: yh_test
password: 9nm0icOwt6bMHjMusIfMLw==
driver-class-name: com.mysql.jdbc.Driver
... ...