修复文件存储为其他类型时,minio报错的问题
This commit is contained in:
parent
0d950d24b9
commit
794f09c009
|
|
@ -13,7 +13,7 @@ import io.minio.MinioClient;
|
|||
* @author bonus
|
||||
*/
|
||||
@Configuration
|
||||
@ConditionalOnProperty(name = "storage.type", havingValue = "minio")
|
||||
//@ConditionalOnProperty(name = "storage.type", havingValue = "minio")
|
||||
@ConfigurationProperties(prefix = "minio")
|
||||
@Data
|
||||
public class MinioConfig
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class MinioUtil {
|
|||
* 初始化默认存储桶
|
||||
* 在 Spring 容器启动后自动调用,检查默认存储桶是否存在,若不存在则创建
|
||||
*/
|
||||
@PostConstruct
|
||||
// @PostConstruct
|
||||
public void init() {
|
||||
try {
|
||||
if (bucketExists(minioConfig.getBucketName())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue