1697371125@qq.com
2020-12-25 c085e6fa1cb24f0173b500488ecd192dd2ae624f
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;
    }
}