0
0

snailjob配置

This commit is contained in:
2026-04-27 13:17:02 +08:00
parent 05cb75e652
commit 7fcbb81317
4 changed files with 6 additions and 6 deletions

View File

@ -452,7 +452,7 @@ public class AudioProcessService {
long fileSize = 256 * 1024;
// 检查文件大小
if (file.getSize() > fileSize) {
throw new IllegalArgumentException("音频大小不能超过5MB");
throw new IllegalArgumentException("音频大小不能超过256kb");
}
}

View File

@ -16,7 +16,7 @@ spring.boot.admin.client:
--- # snail-job 配置
snail-job:
enabled: false
enabled: true
# 需要在 SnailJob 后台组管理创建对应名称的组,然后创建任务的时候选择对应的组,才能正确分派任务
group: "fys_group"
# SnailJob 接入验证令牌 详见 script/sql/ry_job.sql `sj_group_config`表

View File

@ -4,7 +4,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: root
password: Jq_123456#
hikari:
connection-timeout: 30000
validation-timeout: 5000

View File

@ -2,9 +2,9 @@ spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
url: jdbc:mysql://localhost:3306/fys-vue?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: root
password: Jq_123456#
hikari:
connection-timeout: 30000
validation-timeout: 5000
@ -29,7 +29,7 @@ snail-job:
--- # 监控中心配置
spring.boot.admin.client:
# 增加客户端开关
enabled: true
enabled: false
url: http://localhost:9090/admin
instance:
service-host-type: IP