Commit 0ef6da135047aa362f2a9c59028d17a9c543db5b

Authored by lawrencehj
1 parent 68326716

增加打包为jar的配置说明

src/main/resources/application-dev.yml
@@ -15,6 +15,8 @@ spring: @@ -15,6 +15,8 @@ spring:
15 datasource: 15 datasource:
16 name: eiot 16 name: eiot
17 url: jdbc:sqlite::resource:wvp.sqlite 17 url: jdbc:sqlite::resource:wvp.sqlite
  18 + # 打包为jar运行时把wvp.sqlite发到jar同级文件夹,同时url改为:
  19 + # url: jdbc:sqlite:wvp.sqlite
18 username: 20 username:
19 password: 21 password:
20 type: com.alibaba.druid.pool.DruidDataSource 22 type: com.alibaba.druid.pool.DruidDataSource
@@ -59,6 +61,18 @@ media: @@ -59,6 +61,18 @@ media:
59 # 录像辅助服务, 部署此服务可以实现zlm录像的管理与下载, 0 表示不使用 61 # 录像辅助服务, 部署此服务可以实现zlm录像的管理与下载, 0 表示不使用
60 recordAssistPort: 0 62 recordAssistPort: 0
61 63
  64 +
  65 +# [可选] 日志配置, 一般不需要改
  66 +logging:
  67 + file:
  68 + name: logs/wvp.log
  69 + max-history: 30
  70 + max-size: 10MB
  71 + total-size-cap: 300MB
  72 + level:
  73 + com:
  74 + genersoft:
  75 + iot: info
62 # [根据业务需求配置] 76 # [根据业务需求配置]
63 userSettings: 77 userSettings:
64 # [可选] 自动点播, 使用固定流地址进行播放时,如果未点播则自动进行点播, 需要rtp.enable=true 78 # [可选] 自动点播, 使用固定流地址进行播放时,如果未点播则自动进行点播, 需要rtp.enable=true
@@ -73,15 +87,3 @@ springfox: @@ -73,15 +87,3 @@ springfox:
73 documentation: 87 documentation:
74 swagger-ui: 88 swagger-ui:
75 enabled: true 89 enabled: true
76 -  
77 -# [可选] 日志配置, 一般不需要改  
78 -logging:  
79 - file:  
80 - name: logs/wvp.log  
81 - max-history: 30  
82 - max-size: 10MB  
83 - total-size-cap: 300MB  
84 - level:  
85 - com:  
86 - genersoft:  
87 - iot: info  
88 \ No newline at end of file 90 \ No newline at end of file