Files
UserclassService/src/main/resources/application.yml
T
Allen 66cd0f1515 refactor: 项目重构为 bschclassmanage 包结构,修复启动/CORS/路由问题
- 根包 com.bestsch.classicalchinese 重命名为 com.bestsch.bschclassmanage
- 修复 CORS 启动失败:allowCredentials=true 时 allowedOrigins 不能含 "*",
  23 个 Controller 的 @CrossOrigin 改用语义等价的 originPatterns
- 修复 /api/* 与 /oapi/* 接口 404:API_PATH/OAPI 常量去掉尾斜杠,
  消除 Spring Boot 2.7 PathPattern 下的双斜杠(/api//subject/) 导致的匹配失败
- UserSysRoleArgumentResolver 增加从 URL 参数 currentrole 回退解析(便于本地调试),
  原请求头 currentrole 注入方式保持不变
2026-08-12 16:59:57 +08:00

93 lines
2.4 KiB
YAML

spring:
mvc:
date-format: yyyy-MM-dd HH:mm:ss
servlet:
multipart:
max-file-size: 50MB # 单个文件大小
max-request-size: 50MB
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
redis:
host: 127.0.0.1
port: 6379
database: 0
#password: 123
rabbitmq:
host: 127.0.0.1
port: 5672
username: guest
password: guest
# publisher-confirms: true
publisher-returns: true
template:
mandatory: true
data:
redis:
repositories:
enabled: false
http:
encoding:
force: true
charset: utf-8
enabled: true
datasource:
url: jdbc:mysql://localhost:3306/dbschoolclass?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123123
driver-class-name: com.mysql.cj.jdbc.Driver
min-idle: 30
max-active: 30
hikari:
minimum-idle: 20 #最小连接数
maximum-pool-size: 500 #池中最大连接数
connection-timeout: 600000 #连接超时时间
idle-timeout: 120000 # 空闲等待时间 ms
leakDetectionThreshold: 300000 #用来设置连接被占用的超时时间,单位为毫秒,默认为0,表示禁用连接泄露检测。
auto-commit: true #
max-lifetime: 1800000 # 30000--30分钟
validation-timeout: 3000
connection-test-query: SELECT 1 FROM DUAL
connection-init-sql: SET NAMES utf8mb4
#jpa
jpa:
database: MySQL
show-sql: true
hibernate:
# 生产环境设置成 none,避免程序运行时自动更新数据库结构
ddl-auto: update
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
format_sql: true # 格式化 SQL,方便阅读
open-in-view: true
yh:
sso:
server-url-prefix: http://sso.yunhaixingtong.com/cas/
client-host-url: http://192.168.10.166:8086
allow-headers: all
allow-origins: all
url-pattern: /api/*
mobi-api-pattern: /mobiapi/*
app-auth:
enabled: true
# 本应用自身身份(客户端签名用)
app-key: 100001
app-secret: ec4e860206374c80938719fff8e14a86
open:
enabled: true
base-host: http://base.yunhaixingtong.com
user-center-url: http://base.yunhaixingtong.com/userbase
FILE_PATH: D://工作区/JAVA/bsch/
FILE_WEB_PATH: http://localhost:8086/upload/