application.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: cbwq
  5. # 版本
  6. version: 3.6.0
  7. # 版权年份
  8. copyrightYear: 2021
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: D:/ruoyi/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 8080
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /api
  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.ruoyi: debug
  35. org.springframework: warn
  36. # Spring配置
  37. spring:
  38. # 资源信息
  39. messages:
  40. # 国际化资源文件路径
  41. basename: i18n/messages
  42. profiles:
  43. active: test
  44. # 文件上传
  45. servlet:
  46. multipart:
  47. # 单个文件大小
  48. max-file-size: 10MB
  49. # 设置总上传的文件大小
  50. max-request-size: 20MB
  51. # 服务模块
  52. devtools:
  53. restart:
  54. # 热部署开关
  55. enabled: true
  56. # token配置
  57. token:
  58. # 令牌自定义标识
  59. header: Authorization
  60. # 令牌密钥
  61. secret: abcdefghijklmnopqrstuvwxyz
  62. # 令牌有效期(默认120分钟)
  63. expireTime: 10080
  64. filterUser: admin,huihai # 不走综合平台用户校验的账号
  65. # MyBatis配置
  66. mybatis:
  67. # 搜索指定包别名
  68. typeAliasesPackage: com.ruoyi.**.domain
  69. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  70. mapperLocations: classpath*:mapper/**/*Mapper.xml
  71. # 加载全局的配置文件
  72. configLocation: classpath:mybatis/mybatis-config.xml
  73. # PageHelper分页插件
  74. pagehelper:
  75. helperDialect: mysql
  76. reasonable: true
  77. supportMethodsArguments: true
  78. params: count=countSql
  79. # 防止XSS攻击
  80. xss:
  81. # 过滤开关
  82. enabled: true
  83. # 排除链接(多个用逗号分隔)
  84. excludes: /system/notice/*
  85. # 匹配链接
  86. urlPatterns: /system/*,/monitor/*,/tool/*