application.yml 2.1 KB

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