From 2db1aa88e8ab53096a936163d686b90d8e056a99 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Wed, 21 Aug 2024 23:18:33 +0800
Subject: [PATCH] 国土对接返回信息加密

---
 src/main/resources/application-dev.yml |   65 +++++++++++++++++++++++++++++---
 1 files changed, 58 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
index eaab9ea..5ac1b7c 100644
--- a/src/main/resources/application-dev.yml
+++ b/src/main/resources/application-dev.yml
@@ -1,17 +1,38 @@
 #spring
 spring:
   datasource:
-    url: jdbc:mysql://182.108.40.114:3308/drone_zt_test?useSSL=false&allowPublicKeyRetrieval=true
-    username: root
-    password: yshb@123
-#    url: jdbc:mysql://localhost:3306/drone_test?useSSL=false&allowPublicKeyRetrieval=true
+    #使用阿里的Druid
+    type: com.alibaba.druid.pool.DruidDataSource
+    dynamic:
+      primary: master #设置默认的数据源或者数据源组,默认值即为master
+      strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
+      datasource:
+        master:
+          driver-class-name: com.mysql.cj.jdbc.Driver
+#          url: jdbc:mysql://182.108.40.114:3308/drone_zt_test?useSSL=false&allowPublicKeyRetrieval=true
+#          username: root
+#          password: yshb@123
+          url: jdbc:mysql://139.196.74.78:3306/drone_test?useSSL=false&allowPublicKeyRetrieval=true
+          username: root
+          password: jxpskj_2018
+        sqlite-resource:
+          driver-class-name: org.sqlite.JDBC
+          url: jdbc:sqlite:DB/resource_db.db
+          username:
+          password:
+        sqlite-ret:
+          driver-class-name: org.sqlite.JDBC
+          url: jdbc:sqlite:DB/result_db.db
+          username:
+          password:
+#    url: jdbc:mysql://192.168.2.104:3306/drone_test?useSSL=false&allowPublicKeyRetrieval=true
 #    username: root
 #    password: 123456
 
   redis:
     host: 127.0.0.1
     port: 6379
-    database: 0
+    database: 1
     username: # if you enable
     password:
     lettuce:
@@ -27,6 +48,7 @@
     password: root
     virtualHost: /
     is-open: false
+    enabled: false
 
 
 jwt:
@@ -52,8 +74,8 @@
     # If the protocol is ws/wss, this value is required.
     path:
     # 最初连接到mqtt时需要订阅的主题 多个订阅用 "," .
+#    inbound-topic: sys/product/+/status,thing/product/+/requests,thing/product/+/osd
     inbound-topic: sys/product/+/status,thing/product/+/requests,thing/product/+/osd
-#    inbound-topic: sys/product/+/+,thing/product/+/+
   DRC:
     protocol: WS # @see com.dji.sample.component.mqtt.model.MqttProtocolEnum
     host: 139.196.74.78
@@ -71,6 +93,35 @@
   expire: 3600
   region: us-east-1
   object-dir-prefix:
-  out-net-file-address: http://dev.jxpskj.com:9000
+  out-net-file-address: https://dev.jxpskj.com:8026
+
+#图斑的解压地址和图斑文件转航线文件的地址
+patches:
+  url:
+    path:
+      unzip: src/main/resources/tmp/
+      kmz:
+        destKMZFile: src/main/resources/template/kmz/
+        planeKmzFile: src/main/resources/template/kmz2/
+        sourceDir: src/main/resources/template/wpmz/
+
+  xml:
+    temple:
+      template: src/main/resources/template/template.xml
+      waylines: src/main/resources/template/waylines.xml
+      planeTemplate: src/main/resources/template/template-polygon.xml
+      planeWaylines: src/main/resources/template/waylines-polygon.xml
+    target:
+      template: src/main/resources/template/wpmz/template.kml
+      waylines: src/main/resources/template/wpmz/waylines.wpml
+      planeTemplate: src/main/resources/template/wpmz/template.kml
+      planeWaylines: src/main/resources/template/wpmz/waylines.wpml
 
 
+db:
+  sqlite:
+    resource: DB/resource_db.db
+    result: DB/result_db.db
+    resultSave: src/main/resources/tmp
+    resourceSave: src/main/resources/tmp
+    resultGtSave: src/main/resources/tmp

--
Gitblit v1.9.3