application.yml 2.9 KB

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