mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
阿里云oss
This commit is contained in:
@@ -17,7 +17,7 @@ public class AliyunConfig {
|
||||
|
||||
@Bean(destroyMethod = "shutdown")
|
||||
@Lazy
|
||||
public OSSClient obsClient() {
|
||||
public OSSClient ossClient() {
|
||||
|
||||
AliyunProperty.OSSRegion ossRegion = aliyunProperty.getOSS().getRegions().stream().filter(x -> x.getCode().equalsIgnoreCase(aliyunProperty.getOSS().getRegion())).findFirst().orElseThrow(() -> new RuntimeException("region not found"));
|
||||
OSSClient ossClient = new OSSClient(ossRegion.getEndpoint(), aliyunProperty.getOSS().getAk(), aliyunProperty.getOSS().getSk());
|
||||
|
||||
Reference in New Issue
Block a user