Compare commits
No commits in common. "0c882d398fdaaed53961ae0e2799fd9822880538" and "dad69c66ae6b02dbf59a28ffbd2b6b4b84fad799" have entirely different histories.
0c882d398f
...
dad69c66ae
|
|
@ -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