application.yml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. # 项目相关配置
  2. leisp:
  3. # 名称
  4. name: LEI
  5. # 版本
  6. version: 1.0.0
  7. # 版权年份
  8. copyrightYear: 2019
  9. # 实例演示开关
  10. demoEnabled: false
  11. # 文件路径 示例( Windows配置D:/leisp/uploadPath,Linux配置 /home/leisp/uploadPath)
  12. profile: /home/leisp/uploadPath
  13. #profile : f:/
  14. # 获取ip地址开关
  15. addressEnabled: false
  16. #superMapUrl : http://192.168.1.144:8090/iserver/iClient/forJavaScript
  17. superMapUrl : http://202.111.178.254:8090/iserver/iClient/forJavaScript
  18. videoUrl : http://218.27.1.157:9091/mm/
  19. hikHost : 218.27.1.154:54321
  20. tokenUrl : /oauth/token
  21. previewUrl : /api/video/v2/cameras/previewURLs
  22. client_id : 22654202
  23. client_secret : d7HlmRIaiXp3MQBmsuUg
  24. # 开发环境配置
  25. server:
  26. # 服务器的HTTP端口,默认为80
  27. port: 9091
  28. servlet:
  29. # 应用的访问路径
  30. context-path: /
  31. tomcat:
  32. # tomcat的URI编码
  33. uri-encoding: UTF-8
  34. # tomcat最大线程数,默认为200
  35. max-threads: 800
  36. # Tomcat启动初始化的线程数,默认值25
  37. min-spare-threads: 30
  38. ssl:
  39. protocol: TLS
  40. key-store: classpath:key.keystore
  41. key-alias: tomcat
  42. enabled: true
  43. key-store-password: 111112
  44. key-store-type: JKS
  45. # 日志配置
  46. logging:
  47. level:
  48. com.ruoyi: debug
  49. com.business.slfh.bigdata.event.mapper : debug
  50. com.business.slfh.app.event.mapper : debug
  51. com.business.slfh.manager.cameramanager.mapper : debug
  52. com.business.slfh.app.applyassistance.mapper : debug
  53. com.business.slfh.manager.firemanager.mapper : debug
  54. org.springframework: warn
  55. # 用户配置
  56. user:
  57. password:
  58. # 密码错误{maxRetryCount}次锁定10分钟
  59. maxRetryCount: 5
  60. # Spring配置
  61. spring:
  62. # 模板引擎
  63. thymeleaf:
  64. mode: HTML
  65. encoding: utf-8
  66. # 禁用缓存
  67. cache: false
  68. # 资源信息
  69. messages:
  70. # 国际化资源文件路径
  71. basename: static/i18n/messages
  72. jackson:
  73. time-zone: GMT+8
  74. date-format: yyyy-MM-dd HH:mm:ss
  75. profiles:
  76. active: druid
  77. # 文件上传
  78. servlet:
  79. multipart:
  80. # 单个文件大小
  81. max-file-size: 100MB
  82. # 设置总上传的文件大小
  83. max-request-size: 200MB
  84. # 服务模块
  85. devtools:
  86. restart:
  87. # 热部署开关
  88. enabled: true
  89. additional-paths : src/main/
  90. exclude : WEB-INF/**
  91. # MyBatis
  92. mybatis:
  93. # 搜索指定包别名
  94. typeAliasesPackage: com.**.domain
  95. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  96. mapperLocations: classpath*:mapper/**/*Mapper.xml
  97. # 加载全局的配置文件
  98. configLocation: classpath:mybatis/mybatis-config.xml
  99. #打印SQL到控制台
  100. configuration:
  101. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  102. # PageHelper分页插件
  103. pagehelper:
  104. helperDialect: mysql
  105. reasonable: true
  106. supportMethodsArguments: true
  107. params: count=countSql
  108. # Shiro
  109. shiro:
  110. user:
  111. # 登录地址
  112. loginUrl: /login
  113. # 权限认证失败地址
  114. unauthorizedUrl: /unauth
  115. # 首页地址
  116. indexUrl: /index
  117. # 验证码开关
  118. captchaEnabled: true
  119. # 验证码类型 math 数组计算 char 字符
  120. captchaType: math
  121. cookie:
  122. # 设置Cookie的域名 默认空,即当前访问的域名
  123. domain:
  124. # 设置cookie的有效访问路径
  125. path: /
  126. # 设置HttpOnly属性
  127. httpOnly: true
  128. # 设置Cookie的过期时间,天为单位
  129. maxAge: 30
  130. # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)KeyGenerator keygen = KeyGenerator.getInstance("AES"); SecretKey deskey = keygen.generateKey(); System.out.println(Base64.encodeToString(deskey.getEncoded()));
  131. cipherKey: zSyK5Kp6PZAAjlT+eeNMlg==
  132. session:
  133. # Session超时时间,-1代表永不过期(默认30分钟)
  134. expireTime: 30
  135. # 同步session到数据库的周期(默认1分钟)
  136. dbSyncPeriod: 1
  137. # 相隔多久检查一次session的有效性,默认就是10分钟
  138. validationInterval: 10
  139. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  140. maxSession: -1
  141. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  142. kickoutAfter: false
  143. # 防止XSS攻击
  144. xss:
  145. # 过滤开关
  146. enabled: true
  147. # 排除链接(多个用逗号分隔)
  148. excludes: /system/notice/*,/business/app/*,/profile/upload/*
  149. # 匹配链接
  150. urlPatterns: /system/*,/monitor/*,/tool/*,/business/manager/*
  151. # Swagger配置
  152. swagger:
  153. # 是否开启swagger
  154. enabled: true
  155. #高德地图
  156. thymeleaf:
  157. #缓冲的配置
  158. cache: false
  159. check-template: true
  160. check-template-location: true
  161. #开启MVC thymeleaf 视图解析
  162. enabled: true
  163. encoding: utf-8
  164. mode: HTML5
  165. prefix: classpath:/templates/
  166. suffix: .html