@EnableConfigurationProperties(value=OssProperties.class) public class OssAutoConfiguration extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private OssProperties |
ossProperties |
| 构造器和说明 |
|---|
OssAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
OssTemplate |
aliOssTemplate(com.aliyun.oss.OSSClient ossClient,
FileDataInterface fileDataInterface) |
FileDataInterface |
FileDataInterface(SysFileMapper fileMapper) |
(专用程序包) FileUploadComponent |
fileUploadComponent(OssTemplate ossTemplate,
org.springframework.data.redis.core.StringRedisTemplate redisTemplate) |
com.aliyun.oss.OSSClient |
ossClient() |
FileUploadController |
ossEndpoint(FileUploadComponent fileUploadComponent,
FileDataInterface fileDataInterface) |
OssTemplate |
template(FileDataInterface fileDataInterface) |
private OssProperties ossProperties
@Bean @ConditionalOnMissingBean(value=FileDataInterface.class) public FileDataInterface FileDataInterface(SysFileMapper fileMapper)
@Bean
@ConditionalOnMissingBean(value=com.aliyun.oss.OSSClient.class)
@ConditionalOnProperty(value="oss.name",
havingValue="alioss")
public com.aliyun.oss.OSSClient ossClient()
@Bean
@ConditionalOnProperty(value="oss.name",
havingValue="alioss")
@ConditionalOnBean(value=com.aliyun.oss.OSSClient.class)
public OssTemplate aliOssTemplate(com.aliyun.oss.OSSClient ossClient,
FileDataInterface fileDataInterface)
@Bean
@ConditionalOnProperty(value="oss.name",
havingValue="minio")
public OssTemplate template(FileDataInterface fileDataInterface)
@Bean FileUploadComponent fileUploadComponent(OssTemplate ossTemplate, org.springframework.data.redis.core.StringRedisTemplate redisTemplate)
@Bean public FileUploadController ossEndpoint(FileUploadComponent fileUploadComponent, FileDataInterface fileDataInterface)
Copyright © 2022 jvs. All rights reserved.