<>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
ubuntu16.04 View memory size and other information under C Language life game source code Java Interview questions --shirovue Solve in vuex Data loss after page refresh Huawei Hongmeng system HarmonyOS Learning two : Hongmeng HarmonyOS system architecture Deepen understanding vuex,vuex The five core attributes of Matlab LSTM It was forced to stop production due to a shortage of chips , Volkswagen claims against suppliers python Basic exercises ( One )python-- Freshman final test questions ( With answers )