//同步到es 中
public void save() throws IOException {
//在mapper中查询到数据
List findall = this.myMapper.findall();
BulkRequest bulkRequest = new BulkRequest();
for (int i=0;i
@Resource
private MyMapper myMapper;

//同步到es 中
public void save() throws IOException {
//在mapper中查询到数据
List findall = this.myMapper.findall();
BulkRequest bulkRequest = new BulkRequest();
for (int i=0;i
@Resource
private MyMapper myMapper;