126 lines
1.1 KiB
Java
126 lines
1.1 KiB
Java
package com.rj.config;
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
/**
|
|
* 阿里云配置类
|
|
*
|
|
* @author Li Zhonghua
|
|
* @since 2025-08-22
|
|
*/
|
|
@Configuration
|
|
@ConfigurationProperties(prefix = "aliyun")
|
|
public class AliyunConfig {
|
|
|
|
/**
|
|
* 阿里云API Key
|
|
*/
|
|
private String apiKey;
|
|
|
|
/**
|
|
* 阿里云区域
|
|
*/
|
|
private String region = "cn-beijing";
|
|
|
|
/**
|
|
* 是否启用阿里云服务
|
|
*/
|
|
private boolean enabled = true;
|
|
|
|
public String getApiKey() {
|
|
return apiKey;
|
|
}
|
|
|
|
public void setApiKey(String apiKey) {
|
|
this.apiKey = apiKey;
|
|
}
|
|
|
|
public String getRegion() {
|
|
return region;
|
|
}
|
|
|
|
public void setRegion(String region) {
|
|
this.region = region;
|
|
}
|
|
|
|
public boolean isEnabled() {
|
|
return enabled;
|
|
}
|
|
|
|
public void setEnabled(boolean enabled) {
|
|
this.enabled = enabled;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|