public class FileClientFactory extends Object implements org.springframework.beans.factory.FactoryBean<GaeaOSSTemplate>
| 构造器和说明 |
|---|
FileClientFactory(OSSProperties ossProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
GaeaOSSTemplate |
getObject() |
Class<?> |
getObjectType() |
protected void |
initFileClient()
初始化文件存储,顺序如下:
1.优先判断minio相关配置是否设置,如果有使用minio
2.优先判断minio相关配置是否设置,如果有使用minio
3.默认,以上没有启用时,使用本地存储代替
|
boolean |
isSingleton() |
public FileClientFactory(OSSProperties ossProperties)
public GaeaOSSTemplate getObject() throws Exception
getObject 在接口中 org.springframework.beans.factory.FactoryBean<GaeaOSSTemplate>Exceptionpublic Class<?> getObjectType()
getObjectType 在接口中 org.springframework.beans.factory.FactoryBean<GaeaOSSTemplate>public boolean isSingleton()
isSingleton 在接口中 org.springframework.beans.factory.FactoryBean<GaeaOSSTemplate>protected void initFileClient()
Copyright © 2024 Anji-Plus. All rights reserved.