application.yml 6.2 KB

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