2019-01-30 17:06:23 +08:00
|
|
|
#服务器配置
|
|
|
|
server:
|
|
|
|
undertow:
|
|
|
|
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
|
|
|
|
buffer-size: 1024
|
|
|
|
# 是否分配的直接内存
|
|
|
|
direct-buffers: true
|
2021-02-01 12:49:12 +08:00
|
|
|
# 线程配置
|
|
|
|
threads:
|
|
|
|
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
|
|
|
|
io: 16
|
|
|
|
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
|
|
|
|
worker: 400
|
2019-01-30 17:06:23 +08:00
|
|
|
|
|
|
|
#spring配置
|
|
|
|
spring:
|
2020-04-24 18:02:14 +08:00
|
|
|
cloud:
|
|
|
|
sentinel:
|
|
|
|
eager: true
|
2019-01-30 17:06:23 +08:00
|
|
|
devtools:
|
|
|
|
restart:
|
|
|
|
log-condition-evaluation-delta: false
|
2019-03-09 20:07:46 +08:00
|
|
|
livereload:
|
|
|
|
port: 23333
|
2019-01-30 17:06:23 +08:00
|
|
|
|
|
|
|
#feign配置
|
|
|
|
feign:
|
2021-01-06 16:50:49 +08:00
|
|
|
sentinel:
|
2019-01-30 17:06:23 +08:00
|
|
|
enabled: true
|
|
|
|
okhttp:
|
|
|
|
enabled: true
|
|
|
|
httpclient:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
#对外暴露端口
|
|
|
|
management:
|
|
|
|
endpoints:
|
|
|
|
web:
|
|
|
|
exposure:
|
|
|
|
include: "*"
|
|
|
|
endpoint:
|
|
|
|
health:
|
|
|
|
show-details: always
|
2019-03-09 20:07:46 +08:00
|
|
|
|
2024-07-14 23:40:58 +08:00
|
|
|
#springdoc-openapi配置
|
|
|
|
springdoc:
|
|
|
|
default-flat-param-object: true
|
|
|
|
|
2020-11-14 20:43:29 +08:00
|
|
|
#knife4j配置
|
|
|
|
knife4j:
|
|
|
|
#启用
|
|
|
|
enable: true
|
|
|
|
#基础认证
|
|
|
|
basic:
|
|
|
|
enable: false
|
|
|
|
username: blade
|
|
|
|
password: blade
|
|
|
|
#增强配置
|
|
|
|
setting:
|
|
|
|
enableSwaggerModels: true
|
|
|
|
enableDocumentManage: true
|
|
|
|
enableHost: false
|
|
|
|
enableHostText: http://localhost
|
|
|
|
enableRequestCache: true
|
|
|
|
enableFilterMultipartApis: false
|
|
|
|
enableFilterMultipartApiMethodType: POST
|
2023-04-29 22:03:24 +08:00
|
|
|
language: zh_cn
|
2021-02-01 12:49:12 +08:00
|
|
|
enableFooter: false
|
|
|
|
enableFooterCustom: true
|
2024-04-22 00:19:47 +08:00
|
|
|
footerCustomContent: Copyright © 2024 SpringBlade All Rights Reserved
|
2021-02-01 12:49:12 +08:00
|
|
|
|
|
|
|
#swagger配置信息
|
|
|
|
swagger:
|
|
|
|
title: SpringBlade 接口文档系统
|
|
|
|
description: SpringBlade 接口文档系统
|
2024-07-14 23:40:58 +08:00
|
|
|
version: 4.1.0
|
2021-02-01 12:49:12 +08:00
|
|
|
license: Powered By SpringBlade
|
2023-09-12 02:00:24 +08:00
|
|
|
licenseUrl: https://bladex.cn
|
|
|
|
terms-of-service-url: https://bladex.cn
|
2021-02-01 12:49:12 +08:00
|
|
|
contact:
|
|
|
|
name: smallchill
|
|
|
|
email: smallchill@163.com
|
|
|
|
url: https://gitee.com/smallc
|
2020-11-14 20:43:29 +08:00
|
|
|
|
2019-04-01 22:56:46 +08:00
|
|
|
#blade配置
|
2019-03-09 20:07:46 +08:00
|
|
|
blade:
|
2024-07-14 23:40:58 +08:00
|
|
|
auth:
|
|
|
|
#使用 @org.springblade.test.Sm2KeyGenerator 获取,用于国密sm2验签,需和前端保持一致
|
|
|
|
public-key: 请配置sm2公钥
|
|
|
|
#使用 @org.springblade.test.Sm2KeyGenerator 获取,用于国密sm2解密,前端无需配置
|
|
|
|
private-key: 请配置sm2私钥
|
2022-11-01 23:30:25 +08:00
|
|
|
token:
|
2024-07-14 23:40:58 +08:00
|
|
|
#使用 @org.springblade.test.SignKeyGenerator 获取
|
|
|
|
sign-key: 请配置32位签名
|
|
|
|
#使用 @org.springblade.test.SignKeyGenerator 获取
|
|
|
|
aes-key: 请配置cryptoKey
|
2019-05-18 14:47:30 +08:00
|
|
|
xss:
|
2020-04-24 18:02:14 +08:00
|
|
|
enabled: true
|
2019-12-22 23:56:28 +08:00
|
|
|
skip-url:
|
|
|
|
- /weixin
|
2019-04-01 22:56:46 +08:00
|
|
|
secure:
|
2019-10-20 23:07:14 +08:00
|
|
|
skip-url:
|
2019-12-22 23:56:28 +08:00
|
|
|
- /test/**
|
|
|
|
client:
|
|
|
|
- client-id: sword
|
|
|
|
path-patterns:
|
|
|
|
- /sword/**
|
|
|
|
- client-id: saber
|
|
|
|
path-patterns:
|
|
|
|
- /saber/**
|
2019-03-09 20:07:46 +08:00
|
|
|
tenant:
|
2019-08-08 14:00:15 +08:00
|
|
|
column: tenant_id
|
2019-03-09 20:07:46 +08:00
|
|
|
tables:
|
|
|
|
- blade_notice
|
2019-04-01 22:56:46 +08:00
|
|
|
|