|
|
|
@ -2,9 +2,9 @@
|
|
|
|
|
server: |
|
|
|
|
undertow: |
|
|
|
|
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 |
|
|
|
|
io-threads: 4 |
|
|
|
|
io-threads: 16 |
|
|
|
|
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 |
|
|
|
|
worker-threads: 20 |
|
|
|
|
worker-threads: 400 |
|
|
|
|
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 |
|
|
|
|
buffer-size: 1024 |
|
|
|
|
# 是否分配的直接内存 |
|
|
|
@ -69,13 +69,12 @@ management:
|
|
|
|
|
#blade配置 |
|
|
|
|
blade: |
|
|
|
|
xss: |
|
|
|
|
url: |
|
|
|
|
exclude-patterns: |
|
|
|
|
- /weixin |
|
|
|
|
skip-url: |
|
|
|
|
- /weixin |
|
|
|
|
- /notice/submit |
|
|
|
|
secure: |
|
|
|
|
url: |
|
|
|
|
exclude-patterns: |
|
|
|
|
- /test/** |
|
|
|
|
skip-url: |
|
|
|
|
- /test/** |
|
|
|
|
client: |
|
|
|
|
- client-id: sword |
|
|
|
|
path-patterns: |
|
|
|
|