application.yml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. # 日志配置
  39. logging:
  40. level:
  41. com.ruoyi: debug
  42. com.business.slfh.bigdata.event.mapper : debug
  43. com.business.slfh.app.event.mapper : debug
  44. com.business.slfh.manager.cameramanager.mapper : debug
  45. com.business.slfh.app.applyassistance.mapper : debug
  46. com.business.slfh.manager.firemanager.mapper : debug
  47. org.springframework: warn
  48. # 用户配置
  49. user:
  50. password:
  51. # 密码错误{maxRetryCount}次锁定10分钟
  52. maxRetryCount: 5
  53. # Spring配置
  54. spring:
  55. # 模板引擎
  56. thymeleaf:
  57. mode: HTML
  58. encoding: utf-8
  59. # 禁用缓存
  60. cache: false
  61. # 资源信息
  62. messages:
  63. # 国际化资源文件路径
  64. basename: static/i18n/messages
  65. jackson:
  66. time-zone: GMT+8
  67. date-format: yyyy-MM-dd HH:mm:ss
  68. profiles:
  69. active: druid
  70. # 文件上传
  71. servlet:
  72. multipart:
  73. # 单个文件大小
  74. max-file-size: 100MB
  75. # 设置总上传的文件大小
  76. max-request-size: 200MB
  77. # 服务模块
  78. devtools:
  79. restart:
  80. # 热部署开关
  81. enabled: true
  82. additional-paths : src/main/
  83. exclude : WEB-INF/**
  84. # MyBatis
  85. mybatis:
  86. # 搜索指定包别名
  87. typeAliasesPackage: com.**.domain
  88. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  89. mapperLocations: classpath*:mapper/**/*Mapper.xml
  90. # 加载全局的配置文件
  91. configLocation: classpath:mybatis/mybatis-config.xml
  92. #打印SQL到控制台
  93. configuration:
  94. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  95. # PageHelper分页插件
  96. pagehelper:
  97. helperDialect: mysql
  98. reasonable: true
  99. supportMethodsArguments: true
  100. params: count=countSql
  101. # Shiro
  102. shiro:
  103. user:
  104. # 登录地址
  105. loginUrl: /login
  106. # 权限认证失败地址
  107. unauthorizedUrl: /unauth
  108. # 首页地址
  109. indexUrl: /index
  110. # 验证码开关
  111. captchaEnabled: true
  112. # 验证码类型 math 数组计算 char 字符
  113. captchaType: math
  114. cookie:
  115. # 设置Cookie的域名 默认空,即当前访问的域名
  116. domain:
  117. # 设置cookie的有效访问路径
  118. path: /
  119. # 设置HttpOnly属性
  120. httpOnly: true
  121. # 设置Cookie的过期时间,天为单位
  122. maxAge: 30
  123. # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)KeyGenerator keygen = KeyGenerator.getInstance("AES"); SecretKey deskey = keygen.generateKey(); System.out.println(Base64.encodeToString(deskey.getEncoded()));
  124. cipherKey: zSyK5Kp6PZAAjlT+eeNMlg==
  125. session:
  126. # Session超时时间,-1代表永不过期(默认30分钟)
  127. expireTime: 30
  128. # 同步session到数据库的周期(默认1分钟)
  129. dbSyncPeriod: 1
  130. # 相隔多久检查一次session的有效性,默认就是10分钟
  131. validationInterval: 10
  132. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  133. maxSession: -1
  134. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  135. kickoutAfter: false
  136. # 防止XSS攻击
  137. xss:
  138. # 过滤开关
  139. enabled: true
  140. # 排除链接(多个用逗号分隔)
  141. excludes: /system/notice/*,/business/app/*,/profile/upload/*
  142. # 匹配链接
  143. urlPatterns: /system/*,/monitor/*,/tool/*,/business/manager/*
  144. # Swagger配置
  145. swagger:
  146. # 是否开启swagger
  147. enabled: true
  148. #高德地图
  149. thymeleaf:
  150. #缓冲的配置
  151. cache: false
  152. check-template: true
  153. check-template-location: true
  154. #开启MVC thymeleaf 视图解析
  155. enabled: true
  156. encoding: utf-8
  157. mode: HTML5
  158. prefix: classpath:/templates/
  159. suffix: .html