application.yml 4.5 KB

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