application.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.8.6
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: /www/wwwroot/yyky/uploadPath
  13. # profile: D:/ruoyi/uploadPath
  14. # 获取ip地址开关
  15. addressEnabled: true
  16. # 验证码类型 math 数字计算 char 字符验证
  17. captchaType: math
  18. # 开发环境配置
  19. server:
  20. servlet:
  21. # 应用的访问路径
  22. context-path: /
  23. tomcat:
  24. # tomcat的URI编码
  25. uri-encoding: UTF-8
  26. # 连接数满后的排队数,默认为100
  27. accept-count: 1000
  28. threads:
  29. # tomcat最大线程数,默认为200
  30. max: 800
  31. # Tomcat启动初始化的线程数,默认值10
  32. min-spare: 100
  33. # 日志配置
  34. logging:
  35. level:
  36. com.ruoyi: debug
  37. org.springframework: warn
  38. # 用户配置
  39. user:
  40. password:
  41. # 密码最大错误次数
  42. maxRetryCount: 5
  43. # 密码锁定时间(默认10分钟)
  44. lockTime: 10
  45. # Spring配置
  46. spring:
  47. # 资源信息
  48. messages:
  49. # 国际化资源文件路径
  50. basename: i18n/messages
  51. profiles:
  52. # 测试环境
  53. active: test
  54. # 开发环境
  55. # active: dev
  56. # 生产环境
  57. # active: druid
  58. # 文件上传
  59. servlet:
  60. multipart:
  61. # 单个文件大小
  62. max-file-size: 10MB
  63. # 设置总上传的文件大小
  64. max-request-size: 20MB
  65. # 服务模块
  66. devtools:
  67. restart:
  68. # 热部署开关
  69. enabled: true
  70. # token配置
  71. token:
  72. # 令牌自定义标识
  73. header: Authorization
  74. # 令牌密钥
  75. secret: abcdefghijklmnopqrstuvwxyz
  76. # 令牌有效期(默认30分钟)
  77. expireTime: 30
  78. # MyBatis配置
  79. mybatis:
  80. # 搜索指定包别名
  81. typeAliasesPackage: com.ruoyi.**.domain
  82. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  83. mapperLocations: classpath*:mapper/**/*Mapper.xml
  84. # 加载全局的配置文件
  85. configLocation: classpath:mybatis/mybatis-config.xml
  86. # PageHelper分页插件
  87. pagehelper:
  88. helperDialect: mysql
  89. supportMethodsArguments: true
  90. params: count=countSql
  91. # Swagger配置
  92. swagger:
  93. # 是否开启swagger
  94. enabled: true
  95. # 请求前缀
  96. pathMapping: /dev-api
  97. # 防止XSS攻击
  98. xss:
  99. # 过滤开关
  100. enabled: true
  101. # 排除链接(多个用逗号分隔)
  102. excludes: /system/notice
  103. # 匹配链接
  104. urlPatterns: /system/*,/monitor/*,/tool/*