application.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: airport
  5. # 版本
  6. version: 3.9.0
  7. # 版权年份
  8. copyrightYear: 2025
  9. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  10. profile: /home/airport/uploadPath-haikou
  11. # 获取ip地址开关
  12. addressEnabled: false
  13. # 验证码类型 math 数字计算 char 字符验证
  14. captchaType: math
  15. # 开发环境配置
  16. server:
  17. # 服务器的HTTP端口,默认为8080
  18. port: 8088
  19. servlet:
  20. # 应用的访问路径
  21. context-path: /
  22. # Undertow 服务器配置
  23. undertow:
  24. # URI编码
  25. url-charset: UTF-8
  26. # HTTP请求头最大大小(解决文件名过长问题)
  27. max-http-header-size: 65536
  28. # 设置IO线程数,它主要执行非阻塞的任务
  29. io-threads: 16
  30. # 阻塞任务线程池,当执行类似servlet请求阻塞操作,undertow会从这个线程池中取得线程
  31. worker-threads: 256
  32. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作
  33. # 每块buffer的空间大小,越小空间被利用越充分
  34. buffer-size: 1024
  35. # 每个区分配的buffer数量,所以pool的大小是buffer-size * buffers-per-region
  36. # buffers-per-region: 1024
  37. # 是否分配的直接内存(NIO直接分配的堆外内存)
  38. direct-buffers: true
  39. # 日志配置
  40. logging:
  41. level:
  42. com.sundot.airport: debug
  43. org.springframework: warn
  44. # 打印完整SQL和参数
  45. com.sundot.airport.attendance.mapper: debug
  46. # 用户配置
  47. user:
  48. password:
  49. # 密码最大错误次数
  50. maxRetryCount: 5
  51. # 密码锁定时间(默认10分钟)
  52. lockTime: 10
  53. # Spring配置
  54. spring:
  55. # 资源信息
  56. messages:
  57. # 国际化资源文件路径
  58. basename: i18n/messages
  59. profiles:
  60. active: druid
  61. # 文件上传
  62. servlet:
  63. multipart:
  64. # 单个文件大小
  65. max-file-size: 10MB
  66. # 设置总上传的文件大小
  67. max-request-size: 20MB
  68. # 服务模块
  69. devtools:
  70. restart:
  71. # 热部署开关
  72. enabled: true
  73. # redis 配置
  74. redis:
  75. # 地址
  76. # host: 192.168.3.222
  77. host: 127.0.0.1
  78. # 端口,默认为6379
  79. port: 6379
  80. # 数据库索引
  81. database: 2
  82. # 密码
  83. # password: Qwer+1234
  84. # 连接超时时间
  85. timeout: 10s
  86. lettuce:
  87. pool:
  88. # 连接池中的最小空闲连接
  89. min-idle: 0
  90. # 连接池中的最大空闲连接
  91. max-idle: 8
  92. # 连接池的最大数据库连接数
  93. max-active: 8
  94. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  95. max-wait: -1ms
  96. config:
  97. import: classpath:level-config.yml
  98. # token配置
  99. token:
  100. # 令牌自定义标识
  101. header: Authorization
  102. # 令牌密钥
  103. secret: abcdefghijklmnopqrstuvwxyz
  104. # 令牌有效期(默认30分钟)
  105. expireTime: 30
  106. # MyBatis配置
  107. mybatis:
  108. # 搜索指定包别名
  109. typeAliasesPackage: com.sundot.airport.**.domain
  110. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  111. mapperLocations: classpath*:mapper/**/*Mapper.xml
  112. # 加载全局的配置文件
  113. configLocation: classpath:mybatis/mybatis-config.xml
  114. # MyBatis Plus配置
  115. mybatis-plus:
  116. # 搜索指定包别名
  117. typeAliasesPackage: com.sundot.airport.**.domain
  118. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  119. mapperLocations: classpath*:mapper/**/*Mapper.xml
  120. # 加载全局的配置文件
  121. configLocation: classpath:mybatis/mybatis-config.xml
  122. # PageHelper分页插件
  123. pagehelper:
  124. helperDialect: mysql
  125. supportMethodsArguments: true
  126. params: count=countSql
  127. # Swagger配置
  128. swagger:
  129. # 是否开启swagger
  130. enabled: true
  131. # 请求前缀
  132. pathMapping: /dev-api
  133. # 防止XSS攻击
  134. xss:
  135. # 过滤开关
  136. enabled: true
  137. # 排除链接(多个用逗号分隔)
  138. excludes: /system/notice
  139. # 匹配链接
  140. urlPatterns: /system/*,/monitor/*,/tool/*