mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-07 01:18:33 +08:00
修改原build的使用
This commit is contained in:
parent
c8adb2f5bc
commit
d383ec6645
@ -28,43 +28,43 @@ public class SupplierConfig {
|
|||||||
/** 阿里差异化配置*/
|
/** 阿里差异化配置*/
|
||||||
@Bean
|
@Bean
|
||||||
public AlibabaConfig alibabaConfig(){
|
public AlibabaConfig alibabaConfig(){
|
||||||
return injectObj("sms.alibaba", AlibabaConfig.builder().build());
|
return injectObj("sms.alibaba", new AlibabaConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 华为差异化配置*/
|
/** 华为差异化配置*/
|
||||||
@Bean
|
@Bean
|
||||||
public HuaweiConfig huaweiConfig(){
|
public HuaweiConfig huaweiConfig(){
|
||||||
return injectObj("sms.huawei", HuaweiConfig.builder().build());
|
return injectObj("sms.huawei", new HuaweiConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 云片短信差异化配置*/
|
/** 云片短信差异化配置*/
|
||||||
@Bean
|
@Bean
|
||||||
public YunpianConfig yunpianConfig(){
|
public YunpianConfig yunpianConfig(){
|
||||||
return injectObj("sms.yunpian", YunpianConfig.builder().build());
|
return injectObj("sms.yunpian", new YunpianConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 合一短信差异化配置*/
|
/** 合一短信差异化配置*/
|
||||||
@Bean
|
@Bean
|
||||||
public UniConfig uniConfig(){
|
public UniConfig uniConfig(){
|
||||||
return injectObj("sms.uni", UniConfig.builder().build());
|
return injectObj("sms.uni", new UniConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 腾讯短信差异化配置*/
|
/** 腾讯短信差异化配置*/
|
||||||
@Bean
|
@Bean
|
||||||
public TencentConfig tencentConfig(){
|
public TencentConfig tencentConfig(){
|
||||||
return injectObj("sms.tencent", TencentConfig.builder().build());
|
return injectObj("sms.tencent", new TencentConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 京东云短信差异化配置 */
|
/** 京东云短信差异化配置 */
|
||||||
@Bean
|
@Bean
|
||||||
public JdCloudConfig jdCloudConfig(){
|
public JdCloudConfig jdCloudConfig(){
|
||||||
return injectObj("sms.jdcloud", JdCloudConfig.builder().build());
|
return injectObj("sms.jdcloud", new JdCloudConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 容联云短信差异化配置 */
|
/** 容联云短信差异化配置 */
|
||||||
@Bean
|
@Bean
|
||||||
public CloopenConfig cloopenConfig(){
|
public CloopenConfig cloopenConfig(){
|
||||||
return injectObj("sms.cloopen", CloopenConfig.builder().build());
|
return injectObj("sms.cloopen", new CloopenConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -72,12 +72,12 @@ public class SupplierConfig {
|
|||||||
*/
|
*/
|
||||||
@Bean
|
@Bean
|
||||||
public EmayConfig emayConfig(){
|
public EmayConfig emayConfig(){
|
||||||
return injectObj("sms.emay", EmayConfig.builder().build());
|
return injectObj("sms.emay", new EmayConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 天翼云短信差异化配置 */
|
/** 天翼云短信差异化配置 */
|
||||||
@Bean
|
@Bean
|
||||||
public CtyunConfig ctyunConfig(){
|
public CtyunConfig ctyunConfig(){
|
||||||
return injectObj("sms.ctyun", CtyunConfig.builder().build());
|
return injectObj("sms.ctyun", new CtyunConfig());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.alibaba")
|
@ConfigurationProperties(prefix = "sms.alibaba")
|
||||||
protected AlibabaConfig alibabaConfig() {
|
protected AlibabaConfig alibabaConfig() {
|
||||||
return AlibabaConfig.builder().build();
|
return new AlibabaConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -32,7 +32,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.huawei")
|
@ConfigurationProperties(prefix = "sms.huawei")
|
||||||
protected HuaweiConfig huaweiConfig() {
|
protected HuaweiConfig huaweiConfig() {
|
||||||
return HuaweiConfig.builder().build();
|
return new HuaweiConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -41,7 +41,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.yunpian")
|
@ConfigurationProperties(prefix = "sms.yunpian")
|
||||||
protected YunpianConfig yunpianConfig() {
|
protected YunpianConfig yunpianConfig() {
|
||||||
return YunpianConfig.builder().build();
|
return new YunpianConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -50,7 +50,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.uni")
|
@ConfigurationProperties(prefix = "sms.uni")
|
||||||
protected UniConfig uniConfig() {
|
protected UniConfig uniConfig() {
|
||||||
return UniConfig.builder().build();
|
return new UniConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -59,7 +59,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.tencent")
|
@ConfigurationProperties(prefix = "sms.tencent")
|
||||||
protected TencentConfig tencentConfig() {
|
protected TencentConfig tencentConfig() {
|
||||||
return TencentConfig.builder().build();
|
return new TencentConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -68,7 +68,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.jdcloud")
|
@ConfigurationProperties(prefix = "sms.jdcloud")
|
||||||
protected JdCloudConfig jdCloudConfig() {
|
protected JdCloudConfig jdCloudConfig() {
|
||||||
return JdCloudConfig.builder().build();
|
return new JdCloudConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -77,7 +77,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.cloopen")
|
@ConfigurationProperties(prefix = "sms.cloopen")
|
||||||
protected CloopenConfig cloopenConfig() {
|
protected CloopenConfig cloopenConfig() {
|
||||||
return CloopenConfig.builder().build();
|
return new CloopenConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -86,7 +86,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.emay")
|
@ConfigurationProperties(prefix = "sms.emay")
|
||||||
protected EmayConfig emayConfig() {
|
protected EmayConfig emayConfig() {
|
||||||
return EmayConfig.builder().build();
|
return new EmayConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,7 +95,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.ctyun")
|
@ConfigurationProperties(prefix = "sms.ctyun")
|
||||||
protected CtyunConfig ctyunConfig() {
|
protected CtyunConfig ctyunConfig() {
|
||||||
return CtyunConfig.builder().build();
|
return new CtyunConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.netease")
|
@ConfigurationProperties(prefix = "sms.netease")
|
||||||
protected NeteaseConfig neteaseConfig() {
|
protected NeteaseConfig neteaseConfig() {
|
||||||
return NeteaseConfig.builder().build();
|
return new NeteaseConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -114,6 +114,6 @@ public class SupplierConfig {
|
|||||||
@Bean
|
@Bean
|
||||||
@ConfigurationProperties(prefix = "sms.zhutong")
|
@ConfigurationProperties(prefix = "sms.zhutong")
|
||||||
protected ZhutongConfig zhutongConfig() {
|
protected ZhutongConfig zhutongConfig() {
|
||||||
return ZhutongConfig.builder().build();
|
return new ZhutongConfig();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user