application.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 7006
  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.fs: info
  35. org.springframework: warn
  36. # Spring配置
  37. spring:
  38. # 资源信息
  39. messages:
  40. # 国际化资源文件路径
  41. basename: i18n/messages
  42. profiles:
  43. # active: druid-yjf
  44. active: dev
  45. include: config
  46. # 文件上传
  47. servlet:
  48. multipart:
  49. # 单个文件大小
  50. max-file-size: 10MB
  51. # 设置总上传的文件大小
  52. max-request-size: 20MB
  53. # 服务模块
  54. devtools:
  55. restart:
  56. # 热部署开关
  57. enabled: true
  58. # token配置
  59. token:
  60. # 令牌自定义标识
  61. header: Authorization
  62. # 令牌密钥
  63. secret: abcdefghijklmnopqrstuvwxyz
  64. # 令牌有效期(默认30分钟)
  65. expireTime: 180
  66. mybatis-plus:
  67. # 搜索指定包别名
  68. typeAliasesPackage: com.fs.**.domain,com.fs.**.bo,com.fs.**.vo
  69. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  70. mapperLocations: classpath*:/mapper/**/*.xml
  71. configLocation: classpath:mybatis/mybatis-config.xml
  72. # 全局配置
  73. global-config:
  74. db-config:
  75. # 主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  76. idType: AUTO
  77. # 字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  78. fieldStrategy: NOT_EMPTY
  79. banner: false
  80. # 配置
  81. configuration:
  82. # 驼峰式命名
  83. mapUnderscoreToCamelCase: true
  84. # 全局映射器启用缓存
  85. cacheEnabled: true
  86. # 配置默认的执行器
  87. defaultExecutorType: REUSE
  88. # 允许 JDBC 支持自动生成主键
  89. useGeneratedKeys: true
  90. # MyBatis配置
  91. mybatis:
  92. # 搜索指定包别名
  93. typeAliasesPackage: com.fs.**.domain
  94. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  95. mapperLocations: classpath*:mapper/**/*Mapper.xml
  96. # 加载全局的配置文件
  97. configLocation: classpath:mybatis/mybatis-config.xml
  98. # PageHelper分页插件
  99. pagehelper:
  100. helperDialect: mysql
  101. supportMethodsArguments: true
  102. params: count=countSql
  103. # Swagger配置
  104. swagger:
  105. # 是否开启swagger
  106. enabled: false
  107. # 请求前缀
  108. pathMapping: /dev-api
  109. # 防止XSS攻击
  110. xss:
  111. # 过滤开关
  112. enabled: true
  113. # 排除链接(多个用逗号分隔)
  114. excludes: /system/notice,/system/config/*
  115. # 匹配链接
  116. urlPatterns: /system/*,/monitor/*,/tool/*
  117. wx:
  118. miniapp:
  119. configs:
  120. - appid: wxbe53e91d9ad11ca6
  121. secret: 447135e6ca602fa4745b81216f600615
  122. token: Ncbnd7lJvkripVOpyTFAna6NAWCxCrvC
  123. aesKey: HlEiBB55eaWUaeBVAQO3cWKWPYv1vOVQSq7nFNICw4E
  124. msgDataFormat: JSON
  125. pay:
  126. appId: wx782bacb12a6b5d4f #微信公众号或者小程序等的appid
  127. mchId: 1518509741 #微信支付商户号
  128. mchKey: Jinrichengzhang88888888888888888 #微信支付商户密钥
  129. subAppId: #服务商模式下的子商户公众账号ID
  130. subMchId: #服务商模式下的子商户号
  131. keyPath: c:\tools\apiclient_cert.p12 # p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
  132. notifyUrl: https://api.haitujia.com/app/wxpay/wxPayNotify