Commit 4b120988 authored by suhuiguang's avatar suhuiguang

1.巡检启动报错

parent 26c9b751
......@@ -75,8 +75,8 @@ public class CheckRecordDataConsumer implements Runnable {
public void run() {
while (true) {
try {
this.setRequestContext();
CheckRecordDataDto checkRecordDataDto = blockingQueue.take();
this.setRequestContext();
this.save2Db(checkRecordDataDto);
} catch (Exception e) {
log.error("入库失败", e);
......
......@@ -7,7 +7,7 @@ import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
@Configuration
@EnableElasticsearchRepositories(basePackages = {"com.yeejoin.amos.boot.module.common.biz.dao","com.yeejoin.amos.patrol.business.dao.repository"})
@EnableElasticsearchRepositories(basePackages = {"com.yeejoin.amos.boot.module.common.biz.dao","com.yeejoin.amos.patrol.business.dao.repository","com.yeejoin.amos.boot.module.common.api.dao"})
public class ElasticSearchRestTemplateConfig {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment