Files
xj-oss-syn/src/main/resources/app.yml
T
lianlonggangandClaude Sonnet 4.6 3fddada267 feat: 初始化 xj-oss-syn 项目
- OSS 文件同步核心功能:扫描业务表、上传文件、回写路径
- 业务文件映射配置表(BIZ_FILE_MAPPING),支持动态管理、启用/禁用、自定义 bizPath
- 同步任务异步执行,前端实时轮询进度
- 全局异常过滤器,统一错误日志输出
- 文件日志/任务历史清理接口
- 管理页面:同步管理 + 映射配置 Tab

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 18:55:44 +08:00

83 lines
2.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
server.port: 8080
solon.app:
name: 'xj-oss-syn'
group: 'yxtech'
solon.logging:
appender:
console:
level: INFO
charset: UTF-8
file:
level: INFO
charset: UTF-8
logger:
com.yxtech.ossyn:
level: INFO
com.baomidou.mybatisplus:
level: INFO
# =====================================
# 数据源1:本项目数据库(存储 QH_OSS_FILE_LOG
# =====================================
solon.dataSources:
db1!:
class: "com.zaxxer.hikari.HikariDataSource"
jdbcUrl: jdbc:mysql://localhost:3308/oss_handle?characterEncoding=UTF-8&useUnicode=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
driverClassName: com.mysql.cj.jdbc.Driver
username: root
password: 123456
mybatis.db1:
typeAliases:
- "com.yxtech.ossyn.entity"
mappers:
- "com.yxtech.ossyn.mapper"
configuration:
logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
globalConfig:
banner: false
# =====================================
# 数据源2(业务库)公共连接参数,数据库名动态替换
# =====================================
biz-datasource:
host: 192.168.1.250
port: 3309
username: root
password: Aa135790123
params: "characterEncoding=UTF-8&useUnicode=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai"
# =====================================
# 业务表映射配置
# 格式:数据库名 业务表名 业务表ID列名 业务文件路径列名
# =====================================
biz-file-mappings:
# - dbName: dmz_health_system
# tableName: sys_user
# idCol: id
# fileCol: avatar
- dbName: dmz_health_consult
tableName: con_resource
idCol: id
fileCol: img
# =====================================
# 本地文件根路径(业务表中存储的是相对路径,拼接此前缀查找文件)
# =====================================
local-file:
root-path: "D:/upload"
# =====================================
# OSS 配置(新疆油田 IOSP 平台)
# =====================================
xj-oss:
gateway-url: http://api.iosp.ydpt.tech
client-id: jkglpt
client-secret: jkglpt@12345!
organization-id: 0
config-code: FILE-OSS-0a85c4dd40ca745a598b872c7974bcaca
directory: scyx/scfz/aygc/jkgl/
file-type-white-list: dat,svg,dwg,pr,pptm,ai,bak,pptx,lic,db,caj,wps,xmind,eps,exe,doc,docx,xls,xlsx,ppt,pps,pdf,xml,webp,MOV,MP4,HEVC,wmv,rmvb,rm,odt,3gp,swf,gz,tgz,log,bz,bz2,tbz,zip,rar,tar,7z,mp3,mid,ogg,mpga,mp4a,wav,wma,avi,dv,mp4,bmp,xlsm,dps,bak,cdr,et,kdh,nh,,nh,mpeg,mpg,mov,wm,flv,mkv,bmp,jpg,jpeg,gif,png,tif,tiff,tga,psd,txt,php,html,htm,js,css,rtf,rtfd,py,java,rb,sh,pl,sql,xml,gdb,gdbx