bootstrap.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #服务器配置
  2. server:
  3. undertow:
  4. # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
  5. io-threads: 4
  6. # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
  7. worker-threads: 20
  8. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
  9. buffer-size: 1024
  10. # 是否分配的直接内存
  11. direct-buffers: true
  12. #spring配置
  13. spring:
  14. cache:
  15. ehcache:
  16. config: classpath:config/ehcache.xml
  17. http:
  18. encoding:
  19. charset: UTF-8
  20. force: true
  21. servlet:
  22. multipart:
  23. max-file-size: 256MB
  24. max-request-size: 1024MB
  25. mvc:
  26. throw-exception-if-no-handler-found: true
  27. resources:
  28. add-mappings: false
  29. datasource:
  30. driver-class-name: com.mysql.cj.jdbc.Driver
  31. hikari:
  32. connection-test-query: SELECT 1 FROM DUAL
  33. connection-timeout: 30000
  34. maximum-pool-size: 5
  35. max-lifetime: 1800000
  36. minimum-idle: 1
  37. devtools:
  38. restart:
  39. log-condition-evaluation-delta: false
  40. #配置日志地址
  41. logging:
  42. config: classpath:log/logback_${blade.env}.xml
  43. # mybatis
  44. mybatis-plus:
  45. mapper-locations: classpath:org/springblade/**/mapper/*Mapper.xml
  46. #实体扫描,多个package用逗号或者分号分隔
  47. typeAliasesPackage: org.springblade.**.entity
  48. #typeEnumsPackage: org.springblade.dashboard.entity.enums
  49. global-config:
  50. # 关闭MP3.0自带的banner
  51. banner: false
  52. db-config:
  53. #主键类型 0:"数据库ID自增", 1:"不操作", 2:"用户输入ID",3:"数字型snowflake", 4:"全局唯一ID UUID", 5:"字符串型snowflake";
  54. id-type: id_worker
  55. #字段策略
  56. insert-strategy: not_null
  57. update-strategy: not_null
  58. select-strategy: not_null
  59. #驼峰下划线转换
  60. table-underline: true
  61. # 逻辑删除配置
  62. # 逻辑删除全局值(1表示已删除,这也是Mybatis Plus的默认配置)
  63. logic-delete-value: 1
  64. # 逻辑未删除全局值(0表示未删除,这也是Mybatis Plus的默认配置)
  65. logic-not-delete-value: 0
  66. configuration:
  67. map-underscore-to-camel-case: true
  68. cache-enabled: false
  69. #swagger配置信息
  70. swagger:
  71. title: SpringBlade 接口文档系统
  72. description: SpringBlade 接口文档系统
  73. version: 2.4.0
  74. license: Powered By SpringBlade
  75. licenseUrl: https://bladex.vip
  76. terms-of-service-url: https://bladex.vip
  77. contact:
  78. name: smallchill
  79. email: smallchill@163.com
  80. url: https://gitee.com/smallc