bootstrap.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. druid:
  32. initial-size: 5
  33. max-active: 20
  34. min-idle: 5
  35. max-wait: 60000
  36. # MySql、PostgreSQL校验
  37. validation-query: select 1
  38. # Oracle校验
  39. #validation-query: select 1 from dual
  40. validation-query-timeout: 2000
  41. test-on-borrow: false
  42. test-on-return: false
  43. test-while-idle: true
  44. time-between-eviction-runs-millis: 60000
  45. min-evictable-idle-time-millis: 300000
  46. stat-view-servlet:
  47. enabled: true
  48. login-username: blade
  49. login-password: 1qaz@WSX
  50. web-stat-filter:
  51. enabled: true
  52. url-pattern: /*
  53. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  54. session-stat-enable: true
  55. session-stat-max-count: 10
  56. #hikari:
  57. #connection-test-query: SELECT 1 FROM DUAL
  58. #connection-timeout: 30000
  59. #maximum-pool-size: 5
  60. #max-lifetime: 1800000
  61. #minimum-idle: 1
  62. devtools:
  63. restart:
  64. log-condition-evaluation-delta: false
  65. #配置日志地址
  66. logging:
  67. config: classpath:log/logback_${blade.env}.xml
  68. # mybatis
  69. mybatis-plus:
  70. mapper-locations: classpath:org/springblade/**/mapper/*Mapper.xml
  71. #实体扫描,多个package用逗号或者分号分隔
  72. typeAliasesPackage: org.springblade.**.entity
  73. #typeEnumsPackage: org.springblade.dashboard.entity.enums
  74. global-config:
  75. # 关闭MP3.0自带的banner
  76. banner: false
  77. db-config:
  78. #主键类型 0:"数据库ID自增", 1:"不操作", 2:"用户输入ID",3:"数字型snowflake", 4:"全局唯一ID UUID", 5:"字符串型snowflake";
  79. id-type: id_worker
  80. #字段策略
  81. insert-strategy: not_null
  82. update-strategy: not_null
  83. select-strategy: not_null
  84. #驼峰下划线转换
  85. table-underline: true
  86. # 逻辑删除配置
  87. # 逻辑删除全局值(1表示已删除,这也是Mybatis Plus的默认配置)
  88. logic-delete-value: 1
  89. # 逻辑未删除全局值(0表示未删除,这也是Mybatis Plus的默认配置)
  90. logic-not-delete-value: 0
  91. configuration:
  92. map-underscore-to-camel-case: true
  93. cache-enabled: false
  94. #swagger配置信息
  95. swagger:
  96. title: SpringBlade 接口文档系统
  97. description: SpringBlade 接口文档系统
  98. version: 2.5.2
  99. license: Powered By SpringBlade
  100. licenseUrl: https://bladex.vip
  101. terms-of-service-url: https://bladex.vip
  102. contact:
  103. name: smallchill
  104. email: smallchill@163.com
  105. url: https://gitee.com/smallc