From 091dce4ab51a508029a26015cd9f24d598485438 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Tue, 17 Dec 2024 11:36:19 +0800 Subject: [PATCH] update --- appresource/db/app.db | Bin 225280 -> 225280 bytes src/main/resources/application-dev.yml | 2 ++ src/main/resources/application-prod.yml | 4 ++++ src/main/resources/application.yml | 29 ++++++++++++++++++++++++++ src/main/resources/config/application-app.yml | 4 ---- src/main/resources/config/application-dev.yml | 2 -- src/main/resources/config/application.yml | 29 -------------------------- 7 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 src/main/resources/application-dev.yml create mode 100644 src/main/resources/application-prod.yml create mode 100644 src/main/resources/application.yml delete mode 100644 src/main/resources/config/application-app.yml delete mode 100644 src/main/resources/config/application-dev.yml delete mode 100644 src/main/resources/config/application.yml diff --git a/appresource/db/app.db b/appresource/db/app.db index 024b2cb0f67b92737ded295de01b8e8e39ccf7c6..83ba50bebf983d78adef98893c0f1c3f5b909b60 100644 GIT binary patch delta 72 zcmZp8z}xVEcY>5qhz$b+gE6V|1$;#26G@b17cYQ28lBhb&Qz&pEV|IO<+92$|$g1m5p%?8zcYr YOFWFxjEsEkdVGvP%(PvPkNHv}0J^jii2wiq diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..95d49ab --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,2 @@ +A8kCanBusService: + url: ws://192.168.8.10:19005 diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml new file mode 100644 index 0000000..ef71fe9 --- /dev/null +++ b/src/main/resources/application-prod.yml @@ -0,0 +1,4 @@ +A8kCanBusService: + url: ws://127.0.0.1:19005 +server: + port: 8082 \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..3048cbb --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,29 @@ +server: + port: 8082 + +spring: + profiles: + active: prod + web: + resources: + static-locations: file:appresource/static/app/,file:appresource/static/,file:/opt/app/static/ + datasource: + # url: jdbc:sqlite::resource:app.db + url: jdbc:sqlite:appresource/db/app.db + driver-class-name: org.sqlite.JDBC + jackson: + + serialization: + write-dates-as-timestamps: true + +VirtualDevice: + enableVirtualDevice: false + +springdoc: + api-docs: + path: /doc/api-docs + enabled: true + swagger-ui: + enabled: true # 开启swagger界面,依赖OpenApi,需要OpenApi同时开启 + path: /doc/apitest.html # 自定义路径,默认为"/swagger-ui/index.html + operationsSorter: method # 接口按照方法排序 \ No newline at end of file diff --git a/src/main/resources/config/application-app.yml b/src/main/resources/config/application-app.yml deleted file mode 100644 index 0e68472..0000000 --- a/src/main/resources/config/application-app.yml +++ /dev/null @@ -1,4 +0,0 @@ -A8kCanBusService: - url: ws://127.0.0.1:19005 - - diff --git a/src/main/resources/config/application-dev.yml b/src/main/resources/config/application-dev.yml deleted file mode 100644 index 46ab07c..0000000 --- a/src/main/resources/config/application-dev.yml +++ /dev/null @@ -1,2 +0,0 @@ -A8kCanBusService: - url: ws://192.168.8.10:19005 \ No newline at end of file diff --git a/src/main/resources/config/application.yml b/src/main/resources/config/application.yml deleted file mode 100644 index 2210679..0000000 --- a/src/main/resources/config/application.yml +++ /dev/null @@ -1,29 +0,0 @@ -server: - port: 8080 - -spring: - profiles: - active: app - web: - resources: - static-locations: file:appresource/static/app/,file:appresource/static/,file:/opt/app/static/ - datasource: - # url: jdbc:sqlite::resource:app.db - url: jdbc:sqlite:appresource/db/app.db - driver-class-name: org.sqlite.JDBC - jackson: - - serialization: - write-dates-as-timestamps: true - -VirtualDevice: - enableVirtualDevice: false - -springdoc: - api-docs: - path: /doc/api-docs - enabled: true - swagger-ui: - enabled: true # 开启swagger界面,依赖OpenApi,需要OpenApi同时开启 - path: /doc/apitest.html # 自定义路径,默认为"/swagger-ui/index.html - operationsSorter: method # 接口按照方法排序 \ No newline at end of file