- 所有已实现的接口:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware, DFsService
@Priority(value=2147483645)
@Conditional(value=MySqlSeriesDfsService.MySqlSeriesCondition.class)
public class MySqlSeriesDfsService
extends AbstractDFsService
MySQL 特性类似的数据库存储
PS1. 大文件上传可能会报 max_allowed_packet 不足,可根据参数放开数据库限制 set global max_allowed_packet = 500*1024*1024
PS2. 官方基于 MySQL 测试,其他数据库使用前请自测,敬请谅解!
PS3. 数据库并不适合大规模的文件存储,该扩展仅适用于简单业务,大型业务场景请选择其他存储方案(OSS、MongoDB等)
********************* 配置项 *********************
oms.storage.dfs.mysql_series.driver
oms.storage.dfs.mysql_series.url
oms.storage.dfs.mysql_series.username
oms.storage.dfs.mysql_series.password
oms.storage.dfs.mysql_series.auto_create_table
oms.storage.dfs.mysql_series.table_name
- 从以下版本开始:
- 2023/8/9
- 作者:
- tjq