Browse Source

add miss key field

kerry 5 years ago
parent
commit
932ad01925

+ 11 - 1
elastic-publish-service/src/main/java/com/vcarecity/publish/controller/MainController.java View File

@@ -46,6 +46,16 @@ public class MainController implements PrepareController {
46 46
         }
47 47
     }
48 48
 
49
+
50
+    @SkipMethod
51
+    @ResponseBody
52
+    @RequestMapping(value = "/load", method = {RequestMethod.GET, RequestMethod.POST})
53
+    public ApiResult setLoaded() {
54
+        loadDataStatusService.setStatus(LoadDataStatusService.DATA_STATUS_LOADED);
55
+        return ApiResult.builder().status(20000).message("already load data success!").build();
56
+    }
57
+
58
+
49 59
     @SkipMethod
50 60
     @ResponseBody
51 61
     @RequestMapping(value = "/load", method = {RequestMethod.GET, RequestMethod.POST})
@@ -68,7 +78,7 @@ public class MainController implements PrepareController {
68 78
                 return ApiResult.builder().status(40000).message("loading data into elasticsearch").build();
69 79
             }
70 80
         }
71
-        return ApiResult.builder().status(40000).message("already load data success!").build();
81
+        return ApiResult.builder().status(20000).message("already load data success!").build();
72 82
     }
73 83
 
74 84
 

+ 31 - 0
elastic-publish-service/src/main/resources/application-production.yml View File

@@ -0,0 +1,31 @@
1
+server:
2
+  port: 8092
3
+spring:
4
+  datasource:
5
+    url: jdbc:mysql:replication://192.168.10.210:6446,192.168.10.210:6447/fmmp?serverTimezone=Asia/Shanghai
6
+    username: root
7
+    password: R00T@mysql
8
+  elasticsearch:
9
+    rest:
10
+      uris:
11
+        - http://192.168.10.101:9200
12
+        - http://192.168.10.102:9200
13
+        - http://192.168.10.103:9200
14
+      username: kerry
15
+      password: abcd!234
16
+  redis:
17
+    database: 2
18
+    host: 192.168.10.240
19
+    port: 6379
20
+    password: admin~1(^-^)
21
+mybatis:
22
+  type-aliases-package: com.vcarecity.publish.entity
23
+  mapper-locations: classpath:mapper/*.xml
24
+  configuration:
25
+    map-underscore-to-camel-case: true
26
+app:
27
+  index:
28
+    config: index-text
29
+    reload: true
30
+  scheduling:
31
+    enable: false

+ 2 - 1
elastic-publish-service/src/main/resources/application.yml View File

@@ -1,4 +1,5 @@
1 1
 spring:
2 2
   profiles:
3 3
     active: dev
4
-    #active: beta
4
+    #active: beta
5
+    #active: production