89 lines
2.7 KiB
YAML
89 lines
2.7 KiB
YAML
server:
|
||
port: 8060
|
||
|
||
spring:
|
||
mvc:
|
||
date-format: yyyy-MM-dd HH:mm:ss
|
||
servlet:
|
||
multipart:
|
||
max-file-size: 50MB # 单个文件大小
|
||
max-request-size: 200MB # 单次请求总大小(多文件/表单整体上限,避免单文件没超但整体被拒)
|
||
jackson:
|
||
time-zone: GMT+8
|
||
date-format: yyyy-MM-dd HH:mm:ss
|
||
redis:
|
||
host: 127.0.0.1
|
||
port: 6379
|
||
database: 0
|
||
password: 123456
|
||
# 连接/命令超时:让后台探活(不可达时)快速失败,避免阻塞定时器线程;不影响正常请求
|
||
timeout: 500ms
|
||
data:
|
||
redis:
|
||
repositories:
|
||
enabled: false
|
||
http:
|
||
encoding:
|
||
force: true
|
||
charset: utf-8
|
||
enabled: true
|
||
|
||
datasource:
|
||
url: jdbc:mysql://localhost:3306/bsch_userbase?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||
username: root
|
||
password: 123456
|
||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||
min-idle: 30
|
||
max-active: 30
|
||
#jpa
|
||
jpa:
|
||
database: MySQL
|
||
show-sql: true
|
||
hibernate:
|
||
# 生产环境设置成 none,避免程序运行时自动更新数据库结构
|
||
ddl-auto: update
|
||
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
|
||
properties:
|
||
hibernate.order_by.default_null_ordering: last
|
||
hibernate:
|
||
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
|
||
open-in-view: true
|
||
|
||
#本地关闭rabbit
|
||
rabbitmq:
|
||
listener:
|
||
direct:
|
||
auto-startup: false
|
||
simple:
|
||
auto-startup: false
|
||
|
||
# 单点登录 / 应用间签名鉴权(基础平台 yh-auth / yh-app-auth)
|
||
yh:
|
||
sso:
|
||
server-url-prefix: http://sso.yunhaixingtong.com/cas/
|
||
client-host-url: http://localhost:8060
|
||
allow-headers: all
|
||
allow-origins: all
|
||
url-pattern: /api/*
|
||
mobi-api-pattern: /mobiapi/*
|
||
app-auth:
|
||
enabled: true
|
||
sign-key-internal:
|
||
enabled: true
|
||
ips:
|
||
- 10.0.0.0/8
|
||
- 172.16.0.0/12
|
||
- 192.168.10.0/200
|
||
|
||
ADMIN_TAG_ID: 290
|
||
|
||
# 上传文件本地存储根目录(Linux 部署请通过环境变量/配置中心外置,避免写死 Windows 盘符)
|
||
FILE_PATH: D://bsch//bschlearn
|
||
|
||
# 上传文件对外访问的 Web 根地址,须与 MyWebAppConfigurer 中的 /upload/{子目录}/ 映射保持一致
|
||
FILE_WEB_PATH: http://localhost:8060/upload/
|
||
|
||
ZIYUAN_WEB_PATH_HTTP: http://base.bestsch.com/ziyuanku/file/
|
||
UPLOAD_WEB_PATH_HTTP: http://localhost:8060/upload/file/
|
||
ORC_SERVICE_URL: http://oa.bestsch.com/OrcService/api/Ocr/Upload
|