Jelajahi Sumber

更新 admin 的配置文件

reghao 1 bulan lalu
induk
melakukan
f146bc5b3c

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

@@ -33,6 +33,10 @@ spring:
     username: test
     password: Test@123456
   datasource:
-    url: jdbc:mysql://192.168.0.211:3306/tnb_account_tdb?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
+    url: jdbc:mysql://192.168.0.215:3306,192.168.0.216:3306/testdb?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8
     username: test
-    password: Test@123456
+    password: Test@123456
+eureka:
+  client:
+    service-url:
+      defaultZone: http://127.0.0.1:6060/eureka/

+ 1 - 14
admin/src/main/resources/application-dev.yml

@@ -31,17 +31,4 @@ spring:
 eureka:
   client:
     service-url:
-      defaultZone: http://127.0.0.1:6060/eureka/
-app:
-  es-host: 192.168.0.81
-  es-port: 9200
-  es-username: elastic
-  es-password: VLTtN03SSJ4lsyyg56kf
-  kafka-uri: 192.168.0.81:9092
-  kafka-topic: NginxLog
-  base-dir: /opt/data/search_data
-  native-lucene-dirname: native_lucene
-  hibernate-lucene-dirname: hibernate_lucene
-  geoip-filename: qqwry.dat
-  geojson-filename: china1.json
-  gatewayAdminUrl: http://localhost:16000
+      defaultZone: http://127.0.0.1:6060/eureka/

+ 15 - 2
admin/src/main/resources/application.yml

@@ -46,10 +46,23 @@ mybatis:
     map-underscore-to-camel-case: true
 #    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
   mapper-locations: classpath*:mapper/**/**.xml
-  type-aliases-package: cn.reghao.tnb.admin.app.model.po
+  type-aliases-package: cn.reghao.tnb.admin.model.po
 eureka:
   instance:
     prefer-ip-address: true
   client:
     register-with-eureka: true
-    fetch-registry: true
+    fetch-registry: true
+app:
+  es-host: 192.168.0.81
+  es-port: 9200
+  es-username: elastic
+  es-password: VLTtN03SSJ4lsyyg56kf
+  kafka-uri: 192.168.0.81:9092
+  kafka-topic: NginxLog
+  base-dir: /opt/data/search_data
+  native-lucene-dirname: native_lucene
+  hibernate-lucene-dirname: hibernate_lucene
+  geoip-filename: qqwry.dat
+  geojson-filename: china1.json
+  gatewayAdminUrl: http://localhost:16000