@Configuration
@ConditionalOnProperty(value="framework.fdfs.enabled",
matchIfMissing=true)
@EnableConfigurationProperties(value={top.lshaci.framework.file.properties.FrameworkFileProperties.class,FrameworkFdfsProperties.class})
public class FrameworkFdfsConfig
extends Object
| 构造器和说明 |
|---|
FrameworkFdfsConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
FdfsFileOperateService |
fdfsFileOperateService()
配置文件操作业务类
|
TrackerServerPool |
trackerServerPool()
创建FastDfs Tracker Server连接池
|
@Bean @ConditionalOnMissingBean public TrackerServerPool trackerServerPool() throws Exception
Exception - 创建失败抛出异常@Bean public FdfsFileOperateService fdfsFileOperateService() throws Exception
Exception - 创建失败抛出异常Copyright © 2020. All rights reserved.