application.yml 4.7 KB

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