<>1. Object's date type add to JsonFormat annotation
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date
addTime;
<>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).
execute().actionGet();

Technology
©2020 ioDraw All rights reserved
From recruitment to resume to find a fresh university student in the company Thread safety and synchronous thread vue element-ui Drop down menu with search python Method of generating random string -random modular Network structure diagramCCF A series of questions --2016 year 4 Month 1 Calculation of break point Vue Element-ui Form Form usage to json Adding multiple key value pairs dynamically in , And how to get it json Object key【 Recommended benefits 】c++ use easyx Making pixel birds , Simple hands on games CobaltStrike Environment building and client connecting to server