application.yml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.2.1
  7. # 版权年份
  8. copyrightYear: 2020
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. # 本地文件上传路径
  13. profile: D:/ruoyi/uploadPath
  14. # 服务器文件路径
  15. # profile: /home/ruoyi/uploadPath
  16. # 获取ip地址开关
  17. addressEnabled: false
  18. # 验证码类型 math 数组计算 char 字符验证
  19. captchaType: math
  20. # 开发环境配置
  21. server:
  22. # 服务器的HTTP端口,默认为8080
  23. port: 9020
  24. servlet:
  25. # 应用的访问路径
  26. context-path: /
  27. tomcat:
  28. # tomcat的URI编码
  29. uri-encoding: UTF-8
  30. # tomcat最大线程数,默认为200
  31. max-threads: 800
  32. # Tomcat启动初始化的线程数,默认值25
  33. min-spare-threads: 30
  34. # 日志配置
  35. logging:
  36. level:
  37. com.ruoyi: debug
  38. org.springframework: warn
  39. # Spring配置
  40. spring:
  41. # 资源信息
  42. messages:
  43. # 国际化资源文件路径
  44. basename: i18n/messages
  45. profiles:
  46. active: druid
  47. # 文件上传
  48. servlet:
  49. multipart:
  50. # 单个文件大小
  51. max-file-size: 10MB
  52. # 设置总上传的文件大小
  53. max-request-size: 20MB
  54. # 服务模块
  55. devtools:
  56. restart:
  57. # 热部署开关
  58. enabled: true
  59. # redis 配置
  60. redis:
  61. # 地址
  62. host: localhost
  63. # 端口,默认为6379
  64. port: 6379
  65. # 密码
  66. password:
  67. # 连接超时时间
  68. timeout: 10s
  69. lettuce:
  70. pool:
  71. # 连接池中的最小空闲连接
  72. min-idle: 0
  73. # 连接池中的最大空闲连接
  74. max-idle: 8
  75. # 连接池的最大数据库连接数
  76. max-active: 8
  77. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  78. max-wait: -1ms
  79. # 微信公众号相关配置
  80. wechat:
  81. # 微信公众号token有效时间(天)
  82. expireTime: 7200
  83. # 微信公众号的应用id
  84. appId: wx85e10d1b0cc19a77
  85. # 密钥 公众号密钥 a9cc9b497e2d077f6b4a1b54e0817fb3
  86. secret: f646cebf205cc0274e01bae898b266ea
  87. # 获取基础access_token的接口
  88. accessTokenUrl: https://api.weixin.qq.com/cgi-bin/token
  89. # 创建菜单的接口
  90. menuUrl: https://api.weixin.qq.com/cgi-bin/menu/create
  91. # 通过UID机制获取用户信息的接口
  92. userInfoUrl: https://api.weixin.qq.com/cgi-bin/user/info
  93. # 网页授权时,通过code获取access_token和openid的接口
  94. loginTokenUrl: https://api.weixin.qq.com/sns/oauth2/access_token
  95. # 根据access_token(非基础access_token)和openid换取用户信息的接口
  96. loginInfoUrl: https://api.weixin.qq.com/sns/userinfo
  97. # 发送模板消息的接口
  98. templateMsgUrl: https://api.weixin.qq.com/cgi-bin/message/template/send
  99. # 获取模板信息
  100. templateUrl: https://api.weixin.qq.com/cgi-bin/template/get_all_private_template
  101. # 微信小程序相关配置
  102. wechatProgram:
  103. # 微信小程序应用id
  104. appId: wx7a77bcad492d7570
  105. # 微信小程序密钥
  106. secret: 864a27937ad71fbdf3299cdcec32dab0
  107. # 获取用户信息
  108. sessionUrl: https://api.weixin.qq.com/sns/jscode2session
  109. # 微信小程序相关配置
  110. warehouseWechatProgram:
  111. # 微信小程序应用id
  112. appId: wx114cb497cc0fb8de
  113. # 微信小程序密钥
  114. secret: b85591e050a7f38e71e4becbc79e0386
  115. # 获取用户信息
  116. sessionUrl: https://api.weixin.qq.com/sns/jscode2session
  117. # token配置
  118. token:
  119. # 令牌自定义标识
  120. header: Authorization
  121. # 令牌密钥
  122. secret: abcdefghijklmnopqrstuvwxyz
  123. # 令牌有效期(默认30分钟)
  124. expireTime: 360
  125. # 微信令牌有效期(默认7天)
  126. wechatExpireTime: 7
  127. # MyBatis配置
  128. mybatis:
  129. # 搜索指定包别名
  130. typeAliasesPackage: com.ruoyi.**.domain
  131. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  132. mapperLocations: classpath*:mapper/**/*Mapper.xml
  133. # 加载全局的配置文件
  134. configLocation: classpath:mybatis/mybatis-config.xml
  135. # PageHelper分页插件
  136. pagehelper:
  137. helperDialect: mysql
  138. reasonable: true
  139. supportMethodsArguments: true
  140. params: count=countSql
  141. # Swagger配置
  142. swagger:
  143. # 是否开启swagger
  144. enabled: true
  145. # 请求前缀
  146. pathMapping: /dev-api
  147. # 防止XSS攻击
  148. xss:
  149. # 过滤开关
  150. enabled: true
  151. # 排除链接(多个用逗号分隔)
  152. excludes: /system/notice/*
  153. # 匹配链接
  154. urlPatterns: /system/*,/monitor/*,/tool/*