application-common.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. # 项目相关配置
  2. fs:
  3. # 名称
  4. name: fs
  5. # 版本
  6. version: 1.1.0
  7. # 版权年份
  8. copyrightYear: 2021
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/fs/uploadPath,Linux配置 /home/fs/uploadPath)
  12. profile: c:/fs/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # jwt:
  18. # # 加密秘钥
  19. # secret: f4e2e52034348f86b67cde581c0f9eb5
  20. # # token有效时长,7天,单位秒
  21. # expire: 31536000
  22. # header: AppToken
  23. # 开发环境配置
  24. server:
  25. servlet:
  26. # 应用的访问路径
  27. context-path: /
  28. tomcat:
  29. # tomcat的URI编码
  30. uri-encoding: UTF-8
  31. # tomcat最大线程数,默认为200
  32. max-threads: 800
  33. # Tomcat启动初始化的线程数,默认值25
  34. min-spare-threads: 30
  35. # 日志配置
  36. logging:
  37. level:
  38. com.fs: info
  39. org.springframework: warn
  40. express:
  41. omsCode: "SF.0235402855"
  42. # Spring配置
  43. spring:
  44. main:
  45. allow-circular-references: true
  46. cache:
  47. type: redis
  48. # 资源信息
  49. messages:
  50. # 国际化资源文件路径
  51. basename: i18n/messages
  52. mvc:
  53. pathmatch:
  54. matching-strategy: ant_path_matcher
  55. async:
  56. request-timeout: 600000
  57. # 文件上传
  58. servlet:
  59. multipart:
  60. # 单个文件大小
  61. max-file-size: 3GB
  62. # 设置总上传的文件大小
  63. max-request-size: 3GB
  64. # 服务模块
  65. devtools:
  66. restart:
  67. # 热部署开关
  68. enabled: true
  69. # token配置
  70. token:
  71. # 令牌自定义标识
  72. header: Authorization
  73. # 令牌密钥(通过环境变量 JWT_TOKEN_SECRET 注入,长度≥32位高复杂度随机字符串,禁止硬编码)
  74. secret: ${JWT_TOKEN_SECRET:}
  75. # 令牌有效期(分钟)
  76. expireTime: 120
  77. # 是否启用 IP 绑定校验(生产环境建议开启)
  78. ipBindEnabled: false
  79. mybatis-plus:
  80. # 搜索指定包别名
  81. typeAliasesPackage: com.fs.**.domain,com.fs.**.bo
  82. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  83. mapperLocations: classpath*:/mapper/**/*.xml
  84. configLocation: classpath:mybatis/mybatis-config.xml
  85. # 全局配置
  86. global-config:
  87. db-config:
  88. # 主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  89. idType: AUTO
  90. # 字段策略(MyBatis-Plus 3.5+ 拆分 insert/update/where)
  91. insert-strategy: not_empty
  92. update-strategy: not_empty
  93. where-strategy: not_empty
  94. banner: false
  95. # 配置
  96. configuration:
  97. # 驼峰式命名
  98. mapUnderscoreToCamelCase: true
  99. # 全局映射器启用缓存
  100. cacheEnabled: true
  101. # 配置默认的执行器
  102. defaultExecutorType: REUSE
  103. # 允许 JDBC 支持自动生成主键
  104. useGeneratedKeys: true
  105. # MyBatis配置
  106. mybatis:
  107. # 搜索指定包别名
  108. typeAliasesPackage: com.fs.**.domain
  109. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  110. mapperLocations: classpath*:mapper/**/*Mapper.xml
  111. # 加载全局的配置文件
  112. configLocation: classpath:mybatis/mybatis-config.xml
  113. # PageHelper分页插件
  114. pagehelper:
  115. helperDialect: mysql
  116. reasonable: false #超出后不显示
  117. supportMethodsArguments: false
  118. params: count=countSql
  119. # Swagger配置
  120. swagger:
  121. # 是否开启swagger
  122. enabled: false
  123. # 请求前缀
  124. pathMapping: /dev-api
  125. # 防止XSS攻击
  126. xss:
  127. # 过滤开关
  128. enabled: true
  129. # 排除链接(多个用逗号分隔)
  130. excludes: /system/notice,/system/config/*
  131. # 匹配链接
  132. urlPatterns: /system/*,/monitor/*,/tool/*
  133. zhyf:
  134. url: https://zhyf-testController.jingpai.com
  135. image:
  136. storage:
  137. local-path: C:\logoFile\logo.jpg
  138. server-path: C:\logoFile\logo.jpg
  139. # application.properties
  140. wechat:
  141. api:
  142. base-url: https://api.weixin.qq.com
  143. upload-shipping-info: /wxa/sec/order/upload_shipping_info
  144. hsy:
  145. access_key: AKLTZTc4YTE4ZjI2OWViNDNjZGI2NjhiYTI5Njc5ZjA1Mzk
  146. secret_key: WXpjelpUYzFOakF5TUdObE5EZGtNR0ZsWXpKaU1tTmtZakk1WXpObE4yRQ==
  147. region: cn-north-1
  148. role_access_key: AKLTNmMwNjJkNDFhYTVjNDIzYzhhNzEyZmZmZTlmYzBhNGM
  149. role_secret_key: T0RaaFl6UmhZV1V4WXpKbU5EWTBNMkZpT0RNNU9UY3daak0wTjJFd09XUQ==
  150. role_trn: trn:iam::2114522511:role/hylj