application.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. # 项目相关配置
  2. tzy:
  3. # 名称
  4. name: TzyTms
  5. # 版本
  6. version: 4.5.0
  7. # 版权年份
  8. copyrightYear: 2019
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/tzy/uploadPath,Linux配置 /home/tzy/uploadPath)
  12. profile: /app/data/uploadPath
  13. # profile: F:/tomcat/card/uploadPath
  14. # 获取ip地址开关
  15. addressEnabled: false
  16. app-version: dev
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为80
  20. port: 80
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /
  24. tomcat:
  25. # tomcat的URI编码
  26. uri-encoding: UTF-8
  27. # tomcat最大线程数,默认为200
  28. max-threads: 800
  29. # Tomcat启动初始化的线程数,默认值25
  30. min-spare-threads: 30
  31. # 日志配置
  32. logging:
  33. level:
  34. com.tzy: debug
  35. org.springframework: warn
  36. fluentd:
  37. enabled: ${FLUENTD_ENABLED:false}
  38. host: ${FLUENTD_HOST:127.0.0.1}
  39. port: ${FLUENTD_PORT:24225}
  40. # 用户配置
  41. user:
  42. password:
  43. # 密码错误{maxRetryCount}次锁定10分钟
  44. maxRetryCount: 5
  45. # Spring配置
  46. spring:
  47. #静态资源访问
  48. resources:
  49. static-locations: classpath:/static/,file:/home/tzy/uploadPath,file:F://tomcat//card//uploadPath
  50. # 模板引擎
  51. thymeleaf:
  52. mode: HTML
  53. encoding: utf-8
  54. # 禁用缓存
  55. cache: false
  56. # 资源信息
  57. messages:
  58. # 国际化资源文件路径
  59. basename: static/i18n/messages
  60. jackson:
  61. time-zone: GMT+8
  62. date-format: yyyy-MM-dd HH:mm:ss
  63. profiles:
  64. active: druid
  65. # 文件上传
  66. servlet:
  67. multipart:
  68. # 单个文件大小
  69. max-file-size: 10MB
  70. # 设置总上传的文件大小
  71. max-request-size: 20MB
  72. # 服务模块
  73. devtools:
  74. restart:
  75. # 热部署开关
  76. enabled: true
  77. redis:
  78. database: 1
  79. host: 192.168.33.101
  80. port: 6379
  81. password: #Tencheer456! # 密码(默认为空)
  82. timeout: 6000 # 连接超时时长(毫秒)
  83. pool:
  84. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  85. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  86. max-idle: 10 # 连接池中的最大空闲连接
  87. min-idle: 5 # 连接池中的最小空闲连接
  88. # MyBatis
  89. mybatis:
  90. # 搜索指定包别名
  91. typeAliasesPackage: com.tzy.**.domain
  92. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  93. mapperLocations: classpath*:mapper/**/*Mapper.xml
  94. # 加载全局的配置文件
  95. configLocation: classpath:mybatis/mybatis-config.xml
  96. # PageHelper分页插件
  97. pagehelper:
  98. helperDialect: postgresql
  99. reasonable: true
  100. supportMethodsArguments: true
  101. params: count=countSql
  102. # Shiro
  103. shiro:
  104. user:
  105. # 登录地址
  106. loginUrl: /login
  107. # 权限认证失败地址
  108. unauthorizedUrl: /unauth
  109. # 首页地址
  110. indexUrl: /index
  111. # 验证码开关
  112. captchaEnabled: false
  113. # 验证码类型 math 数组计算 char 字符
  114. captchaType: math
  115. cookie:
  116. # 设置Cookie的域名 默认空,即当前访问的域名
  117. domain:
  118. # 设置cookie的有效访问路径
  119. path: /
  120. # 设置HttpOnly属性
  121. httpOnly: true
  122. # 设置Cookie的过期时间,天为单位
  123. maxAge: 30
  124. # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)KeyGenerator keygen = KeyGenerator.getInstance("AES"); SecretKey deskey = keygen.generateKey(); System.out.println(Base64.encodeToString(deskey.getEncoded()));
  125. cipherKey: zSyK5Kp6PZAAjlT+eeNMlg==
  126. session:
  127. # Session超时时间,-1代表永不过期(默认30分钟)
  128. expireTime: 480
  129. # 同步session到数据库的周期(默认1分钟)
  130. dbSyncPeriod: 1
  131. # 相隔多久检查一次session的有效性,默认就是10分钟
  132. validationInterval: 10
  133. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  134. maxSession: -1
  135. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  136. kickoutAfter: false
  137. # 防止XSS攻击
  138. xss:
  139. # 过滤开关
  140. enabled: true
  141. # 排除链接(多个用逗号分隔)
  142. excludes: /system/notice/*
  143. # 匹配链接
  144. urlPatterns: /system/*,/monitor/*,/tool/*,/base/*,/api/*
  145. # Swagger配置
  146. swagger:
  147. # 是否开启swagger
  148. enabled: true
  149. pay:
  150. #微信支付
  151. wxpay:
  152. app:
  153. appID: wx10bd35e2ea404835
  154. mchID: 1612475613
  155. key: 123456789123456789123456789abcdd
  156. #微信商户平台下载的安全证书存放路径
  157. certPath: /app/configs/apiclient_cert.p12
  158. #微信支付成功的回调地址
  159. # paynotifyUrl: http://weiyun-liusz.com/api/wx/paymentBack
  160. paynotifyUrl: https://mini-dev.hobbystock.cn/api/wx/paymentBack
  161. wx:
  162. applet:
  163. lives:
  164. # 直播认证二维码
  165. authUrl: https://res.wx.qq.com/op_res/9rSix1dhHfK4rR049JL0PHJ7TpOvkuZ3mE0z7Ou_Etvjf-w1J_jVX0rZqeStLfwh