Compare commits

..

No commits in common. "0c882d398fdaaed53961ae0e2799fd9822880538" and "dad69c66ae6b02dbf59a28ffbd2b6b4b84fad799" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -47,7 +47,7 @@ public class MinioUtil {
* 初始化默认存储桶
* Spring 容器启动后自动调用检查默认存储桶是否存在若不存在则创建
*/
// @PostConstruct
@PostConstruct
public void init() {
try {
if (bucketExists(minioConfig.getBucketName())) {