Commit 8bacb454 authored by 刘斌's avatar 刘斌

Merge branch 'dev' into prod

parents 1b6efdad c123887c
......@@ -22,9 +22,10 @@ spring:
file: classpath:redisson-dev.yml
logging:
level:
# org.springframework.web: trace
org.springframework.security: trace
org.springframework.security.oauth2: debug
top.binfast: info
org.springframework: warn
org.mybatis.spring.mapper: error
org.apache.fury: warn
config: classpath:logback-spring-dev.xml
springdoc:
......
......@@ -4,19 +4,37 @@ server:
context-path: /api
# 开启优雅停机,默认值:immediate 为立即关闭
shutdown: graceful
# undertow 配置
undertow:
# HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
max-http-post-size: -1
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
# 每块buffer的空间大小,越小的空间被利用越充分
buffer-size: 512
# 是否分配的直接内存
direct-buffers: true
threads:
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
io: 8
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
worker: 256
spring:
profiles:
active: dev
application:
name: binfast-admin
threads:
# 开启虚拟线程 仅jdk21可用
virtual:
enabled: true
task:
execution:
# 从 springboot 3.5 开始 spring自带线程池
# 不再需要 AsyncConfig与ThreadPoolConfig 可直接注入线程池使用
thread-name-prefix: async-
# 由spring自己初始化线程池
mode: force
# 由spring自己初始化线程池
mode: force
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
......@@ -29,6 +47,14 @@ spring:
# redisson:
# config: classpath:redisson.yml
# 用户配置
user:
password:
# 密码最大错误次数
maxRetryCount: 5
# 密码锁定时间(默认10分钟)
lockTime: 10
--- # Actuator 监控端点的配置项
management:
endpoints:
......@@ -150,6 +176,18 @@ thread-pool:
enabled: true
trace: true
captcha:
# 是否启用验证码校验
enable: false
# 验证码类型 math 数组计算 char 字符验证
type: MATH
# line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
category: CIRCLE
# 数字验证码位数
numberLength: 1
# 字符验证码长度
charLength: 4
--- # 默认/推荐使用sse推送
sse:
enabled: true
......
......@@ -9,13 +9,13 @@
<packaging>pom</packaging>
<properties>
<java.version>17</java.version>
<java.version>21</java.version>
<spring-boot.version>3.5.6</spring-boot.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
<binfast.version>1.1.9</binfast.version>
<binfast.version>1.2.0</binfast.version>
</properties>
<modules>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment