mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-12-12 12:19:27 +08:00
⚡ 七牛oss地域改为自动识别
This commit is contained in:
parent
3200b9b14c
commit
4e875325ea
@ -52,7 +52,7 @@ public class QiniuConfiguration {
|
|||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public com.qiniu.storage.Configuration qiniuConfiguration() {
|
public com.qiniu.storage.Configuration qiniuConfiguration() {
|
||||||
return new com.qiniu.storage.Configuration(Zone.zone0());
|
return new com.qiniu.storage.Configuration(Zone.autoZone());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
@ -69,7 +69,7 @@ public class QiniuConfiguration {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnBean(com.qiniu.storage.Configuration.class)
|
@ConditionalOnBean(com.qiniu.storage.Configuration.class)
|
||||||
public BucketManager bucketManager(com.qiniu.storage.Configuration cfg) {
|
public BucketManager bucketManager(com.qiniu.storage.Configuration cfg) {
|
||||||
return new BucketManager(auth(), cfg);
|
return new BucketManager(Auth.create(ossProperties.getAccessKey(), ossProperties.getSecretKey()), cfg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
Loading…
Reference in New Issue
Block a user