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

Merge branch 'dev' into prod

parents 1b6efdad c123887c
...@@ -22,9 +22,10 @@ spring: ...@@ -22,9 +22,10 @@ spring:
file: classpath:redisson-dev.yml file: classpath:redisson-dev.yml
logging: logging:
level: level:
# org.springframework.web: trace top.binfast: info
org.springframework.security: trace org.springframework: warn
org.springframework.security.oauth2: debug org.mybatis.spring.mapper: error
org.apache.fury: warn
config: classpath:logback-spring-dev.xml config: classpath:logback-spring-dev.xml
springdoc: springdoc:
......
...@@ -4,12 +4,30 @@ server: ...@@ -4,12 +4,30 @@ server:
context-path: /api context-path: /api
# 开启优雅停机,默认值:immediate 为立即关闭 # 开启优雅停机,默认值:immediate 为立即关闭
shutdown: graceful 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: spring:
profiles: profiles:
active: dev active: dev
application: application:
name: binfast-admin name: binfast-admin
threads:
# 开启虚拟线程 仅jdk21可用
virtual:
enabled: true
task: task:
execution: execution:
# 从 springboot 3.5 开始 spring自带线程池 # 从 springboot 3.5 开始 spring自带线程池
...@@ -29,6 +47,14 @@ spring: ...@@ -29,6 +47,14 @@ spring:
# redisson: # redisson:
# config: classpath:redisson.yml # config: classpath:redisson.yml
# 用户配置
user:
password:
# 密码最大错误次数
maxRetryCount: 5
# 密码锁定时间(默认10分钟)
lockTime: 10
--- # Actuator 监控端点的配置项 --- # Actuator 监控端点的配置项
management: management:
endpoints: endpoints:
...@@ -150,6 +176,18 @@ thread-pool: ...@@ -150,6 +176,18 @@ thread-pool:
enabled: true enabled: true
trace: true trace: true
captcha:
# 是否启用验证码校验
enable: false
# 验证码类型 math 数组计算 char 字符验证
type: MATH
# line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
category: CIRCLE
# 数字验证码位数
numberLength: 1
# 字符验证码长度
charLength: 4
--- # 默认/推荐使用sse推送 --- # 默认/推荐使用sse推送
sse: sse:
enabled: true enabled: true
......
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
<java.version>17</java.version> <java.version>21</java.version>
<spring-boot.version>3.5.6</spring-boot.version> <spring-boot.version>3.5.6</spring-boot.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version> <maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven-compiler-plugin.version>3.14.0</maven-compiler-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> </properties>
<modules> <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