Compare commits
2 Commits
dad69c66ae
...
0c882d398f
| Author | SHA1 | Date |
|---|---|---|
|
|
0c882d398f | |
|
|
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