Kaynağa Gözat

add some test configuration

Jacky Wong 4 yıl önce
ebeveyn
işleme
f02aeed983

+ 1 - 1
search-models/src/main/java/com/liangjian/search/es/QAProblemEs.java

@@ -9,7 +9,7 @@ import java.util.List;
 /**
  * Created by huangziqi on 2020/1/3
  */
-@Document(indexName = "qa_problem", type = "_doc", shards = 1, replicas = 0)
+@Document(indexName = "qa_problem_test", type = "_doc", shards = 1, replicas = 0)
 @Setting(settingPath = "es_index_setting/qa_problem.json")
 @Mapping(mappingPath = "es_index_mapping/qa_problem.json")
 public class QAProblemEs {

+ 2 - 2
search-service-quiz/src/main/java/com/liangjian/search/service/QAProblemJobListener.java

@@ -30,7 +30,7 @@ public class QAProblemJobListener {
     private KafkaTemplate<Object,QAProblemJob> kafkaTemplate;
 
     //正常队列
-    @KafkaListener(id = "qa_problem_consumer_group", topics = "qa_problem_job")
+    @KafkaListener(id = "qa_problem_consumer_group_test", topics = "qa_problem_job_test")
     public void consumeJob(ConsumerRecord<Object,QAProblemJob> record, Acknowledgment ack) {
         ack.acknowledge(); //无论是否成功都直接提交
         var job = record.value();
@@ -56,7 +56,7 @@ public class QAProblemJobListener {
     }
 
     //正常队列错误的的死信对列
-    @KafkaListener(id = "qa_problem_error_consumer_group", topics = "qa_problem_job_error")
+    @KafkaListener(id = "qa_problem_error_consumer_group_test", topics = "qa_problem_job_error_test")
     public void consumeErrorJob(ConsumerRecord<Object,QAProblemJob> record, Acknowledgment ack) {
         var job = record.value();
         logger.info("[error queue] receive job : {}",job);

+ 4 - 4
search-web/src/main/resources/application.yml

@@ -1,5 +1,5 @@
 server:
-  port: 8092
+  port: 8093
 
 spring:
   # elasticsearch
@@ -42,10 +42,10 @@ spring:
       enabled: true
 
   datasource:
-    url: jdbc:sqlserver://219.128.77.96:1433;databaseName=LJCMS;
+    url: jdbc:sqlserver://192.168.20.122:1433;databaseName=LJCMS;
     driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
-    username: caixukun
-    password: cxk@membercenter!@#
+    username: ljhyPortal2016
+    password: testliangjian@#!)2016
     druid:
       validationQuery: SELECT 1
       #初始化连接数