Commit 4b120988 authored by suhuiguang's avatar suhuiguang

1.巡检启动报错

parent 26c9b751
...@@ -75,8 +75,8 @@ public class CheckRecordDataConsumer implements Runnable { ...@@ -75,8 +75,8 @@ public class CheckRecordDataConsumer implements Runnable {
public void run() { public void run() {
while (true) { while (true) {
try { try {
this.setRequestContext();
CheckRecordDataDto checkRecordDataDto = blockingQueue.take(); CheckRecordDataDto checkRecordDataDto = blockingQueue.take();
this.setRequestContext();
this.save2Db(checkRecordDataDto); this.save2Db(checkRecordDataDto);
} catch (Exception e) { } catch (Exception e) {
log.error("入库失败", e); log.error("入库失败", e);
......
...@@ -7,7 +7,7 @@ import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate; ...@@ -7,7 +7,7 @@ import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories; import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
@Configuration @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 { 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