blade-tool/blade-core-boot/src/main/resources/bootstrap.yml

112 lines
3.3 KiB
YAML
Raw Normal View History

2018-12-24 11:58:45 +08:00
#服务器配置
server:
undertow:
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
buffer-size: 1024
# 是否分配的直接内存
direct-buffers: true
# 线程配置
threads:
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
io: 16
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
worker: 400
servlet:
# 编码配置
encoding:
charset: UTF-8
force: true
2018-12-24 11:58:45 +08:00
#spring配置
spring:
cache:
ehcache:
config: classpath:config/ehcache.xml
servlet:
multipart:
max-file-size: 256MB
max-request-size: 1024MB
web:
resources:
add-mappings: false
2018-12-24 11:58:45 +08:00
mvc:
throw-exception-if-no-handler-found: true
datasource:
2019-05-04 22:15:31 +08:00
driver-class-name: com.mysql.cj.jdbc.Driver
2019-09-23 12:51:47 +08:00
druid:
initial-size: 5
max-active: 20
min-idle: 5
max-wait: 60000
# MySql、PostgreSQL校验
validation-query: select 1
# Oracle校验
#validation-query: select 1 from dual
validation-query-timeout: 2000
test-on-borrow: false
test-on-return: false
test-while-idle: true
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
stat-view-servlet:
enabled: true
login-username: blade
login-password: 1qaz@WSX
web-stat-filter:
enabled: true
url-pattern: /*
exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
session-stat-enable: true
session-stat-max-count: 10
#hikari:
#connection-test-query: SELECT 1 FROM DUAL
#connection-timeout: 30000
#maximum-pool-size: 5
#max-lifetime: 1800000
#minimum-idle: 1
2018-12-24 11:58:45 +08:00
#配置日志地址
logging:
config: classpath:log/logback_${blade.env}.xml
# mybatis
mybatis-plus:
mapper-locations: classpath:org/springblade/**/mapper/*Mapper.xml
#实体扫描多个package用逗号或者分号分隔
2019-01-11 16:28:00 +08:00
typeAliasesPackage: org.springblade.**.entity
2018-12-24 11:58:45 +08:00
#typeEnumsPackage: org.springblade.dashboard.entity.enums
global-config:
# 关闭MP3.0自带的banner
banner: false
db-config:
2019-08-04 23:28:03 +08:00
#主键类型 0:"数据库ID自增", 1:"不操作", 2:"用户输入ID",3:"数字型snowflake", 4:"全局唯一ID UUID", 5:"字符串型snowflake";
id-type: assign_id
2019-08-04 23:28:03 +08:00
#字段策略
insert-strategy: not_null
update-strategy: not_null
select-strategy: not_null
2018-12-24 11:58:45 +08:00
#驼峰下划线转换
2019-08-04 23:28:03 +08:00
table-underline: true
2018-12-24 11:58:45 +08:00
# 逻辑删除配置
2019-08-04 23:28:03 +08:00
# 逻辑删除全局值1表示已删除这也是Mybatis Plus的默认配置
2018-12-24 11:58:45 +08:00
logic-delete-value: 1
2019-08-04 23:28:03 +08:00
# 逻辑未删除全局值0表示未删除这也是Mybatis Plus的默认配置
2018-12-24 11:58:45 +08:00
logic-not-delete-value: 0
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
2019-01-21 17:48:03 +08:00
#swagger配置信息
2018-12-24 11:58:45 +08:00
swagger:
title: SpringBlade 接口文档系统
description: SpringBlade 接口文档系统
version: 3.4.0
2018-12-24 11:58:45 +08:00
license: Powered By SpringBlade
2019-02-21 10:40:45 +08:00
licenseUrl: https://bladex.vip
terms-of-service-url: https://bladex.vip
2018-12-24 11:58:45 +08:00
contact:
name: smallchill
email: smallchill@163.com
url: https://gitee.com/smallc