Browse Source

改地址

jek 3 months ago
parent
commit
5622ed9d0b

+ 3 - 1
src/main/resources/application-dev.yml

@@ -1,5 +1,7 @@
 server:
   port: 8888
+  servlet:
+    context-path: /station-op-server
 
 zookeeper:
   server: 127.0.0.1:2181
@@ -12,7 +14,7 @@ spring:
       jdbc-url: jdbc:mysql://192.168.0.40:3306/station_control_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
       username: root
       password: Qx123456
-      maximum-pool-size: 50  # 连接池中允许的最大连接数量 
+      maximum-pool-size: 50  # 连接池中允许的最大连接数量
       minimum-idle: 5  # 连接池中保持的最小空闲连接数量
       auto-commit: true  # 连接是否自动提交
       idle-timeout: 600000

+ 32 - 27
src/main/resources/application-prod.yml

@@ -1,39 +1,44 @@
 server:
   port: 8888
+  servlet:
+    context-path: /station-op-server
 
 zookeeper:
-  server: 172.16.121.248:2181
+  server: zookeeper:2181
 
 spring:
-  datasource:
-    type: com.zaxxer.hikari.HikariDataSource
-    hikari:
-      driver-class-name: com.mysql.cj.jdbc.Driver
-      jdbc-url: jdbc:mysql://rm-bp10j10qy42bzy0q7.mysql.rds.aliyuncs.com:3306/station_control_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
-      username: zk_station
-      password: Zk123456$#
-      maximum-pool-size: 50  # 连接池中允许的最大连接数量
-      minimum-idle: 5  # 连接池中保持的最小空闲连接数量
-      auto-commit: true  # 连接是否自动提交
-      idle-timeout: 600000
+#  datasource:
+#    type: com.zaxxer.hikari.HikariDataSource
+#    hikari:
+#      driver-class-name: com.mysql.cj.jdbc.Driver
+#      jdbc-url: jdbc:mysql://rm-bp10j10qy42bzy0q7.mysql.rds.aliyuncs.com:3306/station_control_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
+#      username: zk_station
+#      password: Zk123456$#
+#      maximum-pool-size: 50  # 连接池中允许的最大连接数量
+#      minimum-idle: 5  # 连接池中保持的最小空闲连接数量
+#      auto-commit: true  # 连接是否自动提交
+#      idle-timeout: 600000
   redis:
-    host: 172.16.121.248
+    host: r-bp12xxvmg1ssq5d33j.redis.rds.aliyuncs.com
     port: 6379
-    #password: jek123
+    password: 'Qx$123456'
   kafka:
-    bootstrap-servers: 172.16.121.248:9092
-    producer:
-      key-serializer: org.apache.kafka.common.serialization.StringSerializer
-      value-serializer: org.apache.kafka.common.serialization.StringSerializer
-      acks: 1
-    consumer:
-      group-id: default-group
-      key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
-      value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
-      max-poll-records: 50
-    listener:
-      ack-mode: MANUAL_IMMEDIATE
-      missing-topics-fatal: false
+    bootstrap-servers:
+      - alikafka-pre-cn-36z3tuo9f003-1-vpc.alikafka.aliyuncs.com:9092
+      - alikafka-pre-cn-36z3tuo9f003-2-vpc.alikafka.aliyuncs.com:9092
+      - alikafka-pre-cn-36z3tuo9f003-3-vpc.alikafka.aliyuncs.com:9092
+      producer:
+        key-serializer: org.apache.kafka.common.serialization.StringSerializer
+        value-serializer: org.apache.kafka.common.serialization.StringSerializer
+        acks: 1
+      consumer:
+        group-id: default-group
+        key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
+        value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
+        max-poll-records: 50
+      listener:
+        ack-mode: MANUAL_IMMEDIATE
+        missing-topics-fatal: false
 
 logging:
   level:

+ 2 - 0
src/main/resources/application-test.yml

@@ -1,5 +1,7 @@
 server:
   port: 8888
+  servlet:
+    context-path: /station-op-server
 
 zookeeper:
   server: 192.168.0.10:2181