xuefei
2020-12-10 29ff0c02969bba14b17ea58eb7cf2b7e928d914d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cn.cetc54.platform.base.manager;
 
 
import cn.cetc54.platform.base.manager.impl.LocalFileManage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
/**
 * 工厂模式
 * @author x
 */
@Component
public class FileManageFactory {
 
 
    @Autowired
    private LocalFileManage localFileManage;
 
    /**
     * 使用配置的服务上传时location传入null 管理文件时需传入存储位置location
     * @return
     */
    public FileManage getFileManage(){
            return localFileManage;
    }
}