From b6294bd36b3023e18606c77553fe136e6500a4b2 Mon Sep 17 00:00:00 2001 From: rain <167982779@qq.com> Date: Wed, 17 Apr 2024 15:42:34 +0800 Subject: [PATCH] 完善DB数据配置 --- src/main/resources/application-prod.yml | 39 +++++++++++++++++++++++++++++++++++---- 1 files changed, 35 insertions(+), 4 deletions(-) diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 4855df9..a102ac4 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -1,9 +1,25 @@ #spring spring: datasource: - url: jdbc:mysql://182.108.40.114:3308/drone_zt_test?useSSL=false&allowPublicKeyRetrieval=true - username: root - password: yshb@123 + #使用阿里的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://127.0.0.1:3306/drone_test?useSSL=false&allowPublicKeyRetrieval=true + username: root + password: jxpskj_2018 + sqlite: + driver-class-name: org.sqlite.JDBC + url: jdbc:sqlite:/home/drone/server/sqlite/resource_db.db + username: + password: +# url: jdbc:mysql://182.108.40.114:3308/drone_zt_test?useSSL=false&allowPublicKeyRetrieval=true +# username: root +# password: yshb@123 # url: jdbc:mysql://127.0.0.1:3306/drone_test?useSSL=false&allowPublicKeyRetrieval=true # username: root # password: jxpskj_2018 @@ -73,4 +89,19 @@ object-dir-prefix: out-net-file-address: http://dev.jxpskj.com:9000 - +#图斑的解压地址和图斑文件转航线文件的地址 +patches: + url: + path: + unzip: /home/drone/server/temp/ + kmz: + destKMZFile: /home/drone/server/template/kmz/ + sourceDir: /home/drone/server/template/wpmz/ +#解析图斑航线模板的地址 + xml: + temple: + template: /home/drone/server/template/template.xml + waylines: /home/drone/server/template/waylines.xml + target: + template: /home/drone/server/template/wpmz/template.kml + waylines: /home/drone/server/template/wpmz/waylines.wpml \ No newline at end of file -- Gitblit v1.9.3