application.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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: 18080
  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. huashe:
  33. permit:
  34. urlPatterns: /pkb/*,/pkbs/*
  35. # 日志配置
  36. logging:
  37. level:
  38. com.ruoyi: debug
  39. org.springframework: warn
  40. # 用户配置
  41. user:
  42. password:
  43. # 密码最大错误次数
  44. maxRetryCount: 5
  45. # 密码锁定时间(默认10分钟)
  46. lockTime: 10
  47. # Spring配置
  48. spring:
  49. # 资源信息
  50. messages:
  51. # 国际化资源文件路径
  52. basename: i18n/messages
  53. profiles:
  54. active: druid
  55. # 文件上传
  56. servlet:
  57. multipart:
  58. # 单个文件大小
  59. max-file-size: 10MB
  60. # 设置总上传的文件大小
  61. max-request-size: 20MB
  62. # 服务模块
  63. devtools:
  64. restart:
  65. # 热部署开关
  66. enabled: true
  67. forest:
  68. max-connections: 1000 # 连接池最大连接数
  69. connect-timeout: 3000 # 连接超时时间,单位为毫秒
  70. read-timeout: 3000 # 数据读取超时时间,单位为毫秒
  71. backend: okhttp3 # 配置后端HTTP API为 okhttp3
  72. ## 日志总开关,打开/关闭Forest请求/响应日志(默认为 true)
  73. log-enabled: true
  74. ## 打开/关闭Forest请求日志(默认为 true)
  75. log-request: true
  76. ## 打开/关闭Forest响应状态日志(默认为 true)
  77. log-response-status: true
  78. ## 打开/关闭Forest响应内容日志(默认为 false)
  79. log-response-content: true
  80. # token配置
  81. token:
  82. # 令牌自定义标识
  83. header: Authorization
  84. # 令牌密钥
  85. secret: abcdefghijklmnopqrstuvwxyz
  86. # 令牌有效期(默认30分钟)
  87. expireTime: 76000
  88. # MyBatis配置
  89. mybatis:
  90. # 搜索指定包别名
  91. typeAliasesPackage: com.ruoyi.**.domain
  92. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  93. mapperLocations: classpath*:mapper/**/*Mapper.xml
  94. # 加载全局的配置文件
  95. configLocation: classpath:mybatis/mybatis-config.xml
  96. # PageHelper分页插件
  97. pagehelper:
  98. helperDialect: mysql
  99. supportMethodsArguments: true
  100. params: count=countSql
  101. # Swagger配置
  102. swagger:
  103. # 是否开启swagger
  104. enabled: true
  105. # 请求前缀
  106. pathMapping: /dev-api
  107. # 防止XSS攻击
  108. xss:
  109. # 过滤开关
  110. enabled: true
  111. # 排除链接(多个用逗号分隔)
  112. excludes: /system/notice
  113. # 匹配链接
  114. urlPatterns: /system/*,/monitor/*,/tool/*