junggilpark 1 ヶ月 前
コミット
366c7180a7

+ 14 - 1
conf/tsi-sig-server.yml

@@ -1,2 +1,15 @@
+spring:
+  profiles:
+    active: prod
+
+---
+spring:
+  config:
+    activate:
+      on-profile: prod
+
 server:
-  port: 8443
+  port: 8445
+
+kakao:
+  key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

+ 26 - 0
src/main/java/com/tsi/sig/server/config/KakaoConfig.java

@@ -0,0 +1,26 @@
+package com.tsi.sig.server.config;
+
+import lombok.Data;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+import javax.annotation.PostConstruct;
+import java.net.UnknownHostException;
+
+@Slf4j
+@Data
+@Component
+//@ConfigurationProperties(prefix = "kakao")
+@ConfigurationProperties("kakao")
+public class KakaoConfig {
+
+    private String key = "tsi-sig-was";
+
+    @PostConstruct
+    private void init() throws UnknownHostException {
+
+        log.info("[{}] --------------------", this.getClass().getSimpleName());
+        log.info("[{}]          kakao.key: {}", this.getClass().getSimpleName(), this.key);
+    }
+}

+ 6 - 2
src/main/resources/application.yml

@@ -88,6 +88,7 @@ spring:
       jdbc-url: jdbc:mariadb://10.4.4.20:3306/cvim_db?characterEncoding=UTF-8&serverTimezone=Asia/Seoul
 #      jdbc-url: jdbc:mariadb:replication://10.4.4.20:3306,10.4.4.21:3306/cvim_db?characterEncoding=UTF-8&serverTimezone=Asia/Seoul&useServerPrepStmts=true&failoverEnable=true
 
+
 application:
   kafka:
     consumer:
@@ -100,8 +101,10 @@ application:
         groupId: tsi-evp-was
         topic: utic-evps
 #        topic: utic-evps-test
-kakaokey: 8d9fdadc20c00319444ac31b9a2b9a3b
+kakao:
+  key: 8d9fdadc20c00319444ac31b9a2b9a3b
 #kakaokey: 00c3f7d32c1f1822dc98ad72e35e0223
+
 ---
 spring:
   config:
@@ -124,4 +127,5 @@ application:
         bootstrap-servers: tsihub-broker.koroad.or.kr:19092
         groupId: tsi-evp-was
         topic: utic-evps-sim
-kakaokey: 00c3f7d32c1f1822dc98ad72e35e0223
+kakao:
+  key: 00c3f7d32c1f1822dc98ad72e35e0223

+ 0 - 1
src/main/resources/static/js/tree.js

@@ -593,7 +593,6 @@ function drawHistoryList(serviceId) {
             _historyMap.get(serviceId).get("obj").phase_list = data.phase_list;
             _historyMap.get(serviceId).get("obj").node_list = data.node_list;
             _historyMap.get(serviceId).get("obj").route_list = data.route_list;
-            console.log(_historyMap.get(serviceId).get("obj"));
             if (_historyMap.get(serviceId).get('draw')) {
                 return;
             }