Browse Source

上传文件至 'src/main/resources'

增加测试环境和生产环境配置文件
yoko 1 năm trước cách đây
mục cha
commit
772f6ca37e

+ 54 - 0
src/main/resources/application-prod.yml

@@ -0,0 +1,54 @@
+server:
+  port: 8900
+
+zookeeper:
+  server: 172.16.121.248:2181
+
+spring:
+  datasource:
+    url: jdbc:mysql://172.16.121.248:3306/station_control_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
+    username: root
+    #    password: 'jek123'
+    password: 'Qx123456'
+    driverClassName: com.mysql.cj.jdbc.Driver
+  redis:
+    host: 172.16.121.248
+    port: 6379
+    #password: jek123
+  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
+
+logging:
+  level:
+    com.zhili: info
+    root: error
+
+mybatis-plus:
+  mapper-locations: mapper/*.xml
+  typeAliasesPackage: com.zhili.stationcontrol.entrty
+  global-config:
+    banner: false
+  configuration:
+    #        log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
+
+wx:
+  miniapp:
+    appid: wx9790f2f1843d1a5d
+    secret: 5b9841eb455227d9647e5b9c046a7348
+    msgDataFormat: JSON
+
+#service-center:
+#  advertised-network: 192.168.0.*

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

@@ -0,0 +1,54 @@
+server:
+  port: 8900
+
+zookeeper:
+  server: 172.16.121.248:2181
+
+spring:
+  datasource:
+    url: jdbc:mysql://172.16.121.248:3306/station_control_cloud?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
+    username: root
+    #    password: 'jek123'
+    password: 'Qx123456'
+    driverClassName: com.mysql.cj.jdbc.Driver
+  redis:
+    host: 172.16.121.248
+    port: 6379
+    #password: jek123
+  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
+
+logging:
+  level:
+    com.zhili: info
+    root: error
+
+mybatis-plus:
+  mapper-locations: mapper/*.xml
+  typeAliasesPackage: com.zhili.stationcontrol.entrty
+  global-config:
+    banner: false
+  configuration:
+    #        log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
+
+wx:
+  miniapp:
+    appid: wx9790f2f1843d1a5d
+    secret: 5b9841eb455227d9647e5b9c046a7348
+    msgDataFormat: JSON
+
+#service-center:
+#  advertised-network: 192.168.0.*