application-dev.yml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. # 项目相关配置
  2. change:
  3. # 名称
  4. name: sxgw-dev
  5. # 版本
  6. version: 3.8.3
  7. # 版权年份
  8. copyrightYear: 2022
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/change/uploadPath,Linux配置 /home/change/uploadPath)
  12. profile: ./uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 当前项目 redis cookie等 变量后缀
  18. projectSuffix: _sxgw24
  19. # 接口地址配置
  20. apiurl:
  21. # 服务保障中心接口地址
  22. #serviceUrl: http://25.39.79.244:18080/zhhq_app/zhhq_large_screen/queryByAppOrg
  23. serviceUrl: http://192.168.1.189/fxkj/php/public/home/Wechat/test
  24. # 楼宇运行监控 接口前缀
  25. buildPrefix: http://192.168.1.74:6789/psbims/office/energy/
  26. # 楼宇运行监控 碳排放量月度变化趋势图接口
  27. buildCarbonEmissionStatistics: carbonEmissionStatistics
  28. # 办公能耗情况接口 年度累计综合能耗
  29. buildEnergyForYear: energyForYear
  30. # 办公能耗情况接口 年度综合能耗趋势接口
  31. buildEnergyStatistics: energyStatistics
  32. # 办公能耗情况接口 年度累计电耗接口
  33. buildPowerForYear: powerForYear
  34. # 办公能耗情况接口 年度电耗趋势接口
  35. buildElectricityStatistics: electricityStatistics
  36. # 办公能耗情况接口 年度累计水耗接口
  37. buildWaterForYear: waterForYear
  38. # 办公能耗情况接口 年度水耗趋势接口
  39. buildWaterStatistics: waterStatistics
  40. # 办公能耗情况接口 年度累计非供暖能耗接口
  41. buildNonHeatingEnergyForYear: nonHeatingEnergyForYear
  42. # 办公能耗情况接口 年度非供暖能耗趋势接口
  43. buildUsePowerStatistics: usePowerStatistics
  44. # 办公能耗情况接口 月用电量信息接口
  45. buildPowerForMonth: powerForMonth
  46. # 办公能耗情况接口 楼宇月用水电热信息接口
  47. buildUseHeatGas: useHeatGas
  48. # 数据中心机房信息接口
  49. buildDataCenterRoom: dataCenterRoom
  50. # 供暖能耗信息接口
  51. buildHeatingEnergy: heatingEnergy
  52. # 燃气用量信息接口
  53. buildGasInfo: gasInfo
  54. # 资源信息接口
  55. buildResourceInfo: resourceInfo
  56. # 可再生电力信息接口
  57. buildGreenPowerInfo: greenPowerInfo
  58. # 办公碳排放情况接口
  59. buildOfficeCarbonForYear: officeCarbonForYear
  60. # 各单位年度累计办公碳排放量统计接口
  61. buildOfficeCarbonForFloor: officeCarbonForFloor
  62. znhqcamera:
  63. path: /usr/local/ffmpeg/bin/ffmpeg # ffmpeg安装的位置
  64. rtmp: rtmp://25.39.67.168:10612/myapp/ # rtmp 链接前缀
  65. flv: http://25.39.67.168:10611/rtmpLive?port=10612&app=myapp&stream= # http访问链接前缀
  66. stat: http://25.39.67.168:10611/statjson # 流媒体服务器状态文件访问路径
  67. corn: 0 0/10 * * * ? # 定时关流
  68. # 开发环境配置
  69. server:
  70. # 服务器的HTTP端口,默认为8890
  71. port: 8115
  72. servlet:
  73. # 应用的访问路径
  74. context-path: /large
  75. tomcat:
  76. # tomcat的URI编码
  77. uri-encoding: UTF-8
  78. # 连接数满后的排队数,默认为100
  79. accept-count: 1000
  80. threads:
  81. # tomcat最大线程数,默认为200
  82. max: 800
  83. # Tomcat启动初始化的线程数,默认值10
  84. min-spare: 100
  85. # 业务配置
  86. business:
  87. # 请求、响应数据加密
  88. aes-encrypt:
  89. # 是否启用
  90. enabled: false
  91. # 日志配置
  92. logging:
  93. level:
  94. com.project: DEBUG
  95. org.springframework: WARN
  96. # 用户配置
  97. user:
  98. password:
  99. # 密码最大错误次数
  100. maxRetryCount: 5
  101. # 密码锁定时间(默认10分钟)
  102. lockTime: 10
  103. # Spring配置
  104. spring:
  105. # 资源信息
  106. messages:
  107. # 国际化资源文件路径
  108. basename: i18n/messages
  109. # 文件上传
  110. servlet:
  111. multipart:
  112. # 单个文件大小
  113. max-file-size: 1024MB
  114. # 设置总上传的文件大小
  115. max-request-size: 2048MB
  116. # 服务模块
  117. devtools:
  118. restart:
  119. # 热部署开关
  120. enabled: true
  121. datasource:
  122. type: com.alibaba.druid.pool.DruidDataSource
  123. driverClassName: com.mysql.cj.jdbc.Driver
  124. druid:
  125. # 主库数据源
  126. master:
  127. url: jdbc:mysql://127.0.0.1:3306/sxgw?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT%2B8
  128. username: root
  129. password: 1qaz2wsx
  130. # 从库数据源
  131. slave:
  132. # 从数据源开关/默认关闭
  133. enabled: false
  134. url:
  135. username:
  136. password:
  137. # 初始连接数
  138. initialSize: 5
  139. # 最小连接池数量
  140. minIdle: 10
  141. # 最大连接池数量
  142. maxActive: 20
  143. # 配置获取连接等待超时的时间
  144. maxWait: 60000
  145. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  146. timeBetweenEvictionRunsMillis: 60000
  147. # 配置一个连接在池中最小生存的时间,单位是毫秒
  148. minEvictableIdleTimeMillis: 300000
  149. # 配置一个连接在池中最大生存的时间,单位是毫秒
  150. maxEvictableIdleTimeMillis: 900000
  151. # 配置检测连接是否有效
  152. validationQuery: SELECT 1 FROM DUAL
  153. testWhileIdle: true
  154. testOnBorrow: false
  155. testOnReturn: false
  156. webStatFilter:
  157. enabled: true
  158. statViewServlet:
  159. enabled: true
  160. # 设置白名单,不填则允许所有访问
  161. allow:
  162. url-pattern: /druid/*
  163. # 控制台管理用户名和密码
  164. login-username: admin
  165. login-password: 123456
  166. filter:
  167. stat:
  168. enabled: true
  169. # 慢SQL记录
  170. log-slow-sql: true
  171. slow-sql-millis: 1000
  172. merge-sql: true
  173. wall:
  174. config:
  175. multi-statement-allow: true
  176. # redis 配置
  177. # redis:
  178. # # 地址
  179. # host: localhost
  180. # # 端口,默认为6379
  181. # port: 6379
  182. # # 数据库索引
  183. # database: 0
  184. # # 密码
  185. # password: 123456
  186. # # 连接超时时间
  187. # timeout: 10s
  188. # lettuce:
  189. # pool:
  190. # # 连接池中的最小空闲连接
  191. # min-idle: 0
  192. # # 连接池中的最大空闲连接
  193. # max-idle: 8
  194. # # 连接池的最大数据库连接数
  195. # max-active: 8
  196. # # #连接池最大阻塞等待时间(使用负值表示没有限制)
  197. # max-wait: -1ms
  198. # token配置
  199. token:
  200. # 令牌自定义标识
  201. header: Authorization
  202. # 令牌密钥
  203. secret: abcdefghijklmnopqrstuvwxyz
  204. # 令牌有效期(默认30分钟)
  205. expireTime: 3000
  206. # MyBatisPlus配置
  207. mybatis-plus:
  208. # 搜索指定包别名
  209. typeAliasesPackage: com.project.**.domain
  210. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  211. mapperLocations: classpath*:mapper/**/*Mapper.xml
  212. # 全局配置
  213. global-config:
  214. db-config:
  215. id-type: auto
  216. logic-delete-field: delFlag
  217. logic-not-delete-value: "0"
  218. logic-delete-value: "1"
  219. configuration:
  220. map-underscore-to-camel-case: true
  221. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 打印sql
  222. # MyBatisPlusJoin配置
  223. mybatis-plus-join:
  224. #是否打印 mybatis plus join banner 默认true
  225. banner: true
  226. #全局启用副表逻辑删除(默认true) 关闭后关联查询不会加副表逻辑删除
  227. sub-table-logic: true
  228. #拦截器MappedStatement缓存(默认true)
  229. ms-cache: true
  230. #表别名(默认 t)
  231. table-alias: t
  232. #副表逻辑删除条件的位置,支持where、on
  233. #默认ON (1.4.7.2及之前版本默认为where)
  234. logic-del-type: on
  235. # PageHelper分页插件
  236. pagehelper:
  237. helperDialect: mysql
  238. supportMethodsArguments: true
  239. params: count=countSql
  240. # Swagger配置
  241. swagger:
  242. # 是否开启swagger
  243. enabled: true
  244. # 请求前缀
  245. pathMapping: /dev-api
  246. # 防止XSS攻击
  247. xss:
  248. # 过滤开关
  249. enabled: true
  250. # 排除链接(多个用逗号分隔)
  251. excludes: /system/notice
  252. # 匹配链接
  253. urlPatterns: /system/*,/monitor/*,/tool/*