<>1. Object's date type add to JsonFormat annotation
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date
<>2. use jackson take object To json
// definition jackson object private static final ObjectMapper MAPPER = new ObjectMapper();
BulkRequestBuilder bulkRequest= client.prepareBulk(); for (Data data : list) {
// Here you can get the batch results of the data needed for business processing IndexRequest index = client .prepareIndex(this.
index, this.type, data.getPrimaryKey() + "") .setSource(MAPPER.
writeValueAsString(data)) .request(); bulkRequest.add(index); } BulkResponse
bulkResponse= bulkRequest.setRefreshPolicy(WriteRequest.RefreshPolicy.NONE).

©2020 ioDraw All rights reserved
Feature Engineering Comparison of data extraction tools :Kettle,Datax,Sqoop,StreamSets Nikkei : Sony and Jiaxia are actively applying for Huawei's supply license Self made whole person computer program k8s delete pod2020 Nobel Prize in physiology or medicine announced Interview questions : Handwritten list ( Include reverse linked list ) Some views of a student on Hongmeng system Children programming children's learning route Programmer's promotion 28 Sorting code of Guan 3