Prechádzať zdrojové kódy

门禁网关程序中优化访问sqlite数据库db文件的逻辑,数据库db文件放在jar包同级db目录下面,可读可写

james 3 mesiacov pred
rodič
commit
19025dce07

+ 2 - 1
data-gateway/data-gateway-eg-kat/src/main/resources/application.yml

@@ -33,7 +33,8 @@ spring:
       max-request-size: 15MB
   datasource:
     name: sqlite3
-    url: jdbc:sqlite::resource:db/yt_gateway.db
+    #url: jdbc:sqlite::resource:db/yt_gateway.db
+    url: jdbc:sqlite:db/yt_gateway.db
     driver-class-name: org.sqlite.JDBC
     username:
     password: