application.yml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. database: 15
  80. # 微信公众号相关配置
  81. wechat:
  82. # 微信公众号token有效时间(天)
  83. expireTime: 7200
  84. # 微信公众号的应用id
  85. appId: wx85e10d1b0cc19a77
  86. # 密钥 公众号密钥 a9cc9b497e2d077f6b4a1b54e0817fb3
  87. secret: f646cebf205cc0274e01bae898b266ea
  88. # 获取基础access_token的接口
  89. accessTokenUrl: https://api.weixin.qq.com/cgi-bin/token
  90. # 创建菜单的接口
  91. menuUrl: https://api.weixin.qq.com/cgi-bin/menu/create
  92. # 通过UID机制获取用户信息的接口
  93. userInfoUrl: https://api.weixin.qq.com/cgi-bin/user/info
  94. # 网页授权时,通过code获取access_token和openid的接口
  95. loginTokenUrl: https://api.weixin.qq.com/sns/oauth2/access_token
  96. # 根据access_token(非基础access_token)和openid换取用户信息的接口
  97. loginInfoUrl: https://api.weixin.qq.com/sns/userinfo
  98. # 发送模板消息的接口
  99. templateMsgUrl: https://api.weixin.qq.com/cgi-bin/message/template/send
  100. # 获取模板信息
  101. templateUrl: https://api.weixin.qq.com/cgi-bin/template/get_all_private_template
  102. # 微信小程序相关配置
  103. wechatProgram:
  104. # 微信小程序应用id
  105. appId: wx7a77bcad492d7570
  106. # 微信小程序密钥
  107. secret: 864a27937ad71fbdf3299cdcec32dab0
  108. # 获取用户信息
  109. sessionUrl: https://api.weixin.qq.com/sns/jscode2session
  110. # 微信小程序相关配置
  111. warehouseWechatProgram:
  112. # 微信小程序应用id
  113. appId: wx114cb497cc0fb8de
  114. # 微信小程序密钥
  115. secret: b85591e050a7f38e71e4becbc79e0386
  116. # 获取用户信息
  117. sessionUrl: https://api.weixin.qq.com/sns/jscode2session
  118. # token配置
  119. token:
  120. # 令牌自定义标识
  121. header: Authorization
  122. # 令牌密钥
  123. secret: abcdefghijklmnopqrstuvwxyz
  124. # 令牌有效期(默认30分钟)
  125. expireTime: 360
  126. # 微信令牌有效期(默认7天)
  127. wechatExpireTime: 7
  128. # MyBatis配置
  129. mybatis:
  130. # 搜索指定包别名
  131. typeAliasesPackage: com.ruoyi.**.domain
  132. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  133. mapperLocations: classpath*:mapper/**/*Mapper.xml
  134. # 加载全局的配置文件
  135. configLocation: classpath:mybatis/mybatis-config.xml
  136. # PageHelper分页插件
  137. pagehelper:
  138. helperDialect: mysql
  139. reasonable: true
  140. supportMethodsArguments: true
  141. params: count=countSql
  142. # Swagger配置
  143. swagger:
  144. # 是否开启swagger
  145. enabled: true
  146. # 请求前缀
  147. pathMapping: /dev-api
  148. # 防止XSS攻击
  149. xss:
  150. # 过滤开关
  151. enabled: true
  152. # 排除链接(多个用逗号分隔)
  153. excludes: /system/notice/*
  154. # 匹配链接
  155. urlPatterns: /system/*,/monitor/*,/tool/*