mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 17:08:40 +08:00
Merge branch 'dev-2.x' of https://gitee.com/dromara/sms_aggregation into newDev
This commit is contained in:
commit
b650e706c0
2
pom.xml
2
pom.xml
@ -55,7 +55,7 @@
|
||||
<properties>
|
||||
|
||||
<spring.boot.version>2.7.10</spring.boot.version>
|
||||
<revision>1.0.5</revision>
|
||||
<revision>2.0.1</revision>
|
||||
<aliyun.version>2.0.23</aliyun.version>
|
||||
<tencent.version>3.1.622</tencent.version>
|
||||
<unisms.version>0.0.4</unisms.version>
|
||||
|
||||
@ -65,7 +65,7 @@ public class SmsAutowiredConfig {
|
||||
@Bean
|
||||
@ConditionalOnProperty(prefix = "sms", name = "config-type", havingValue = "sql_config")
|
||||
protected void supplierSqlConfig(){
|
||||
SupplierSqlConfig.newSupplierSqlConfig();
|
||||
SupplierSqlConfig.refreshSqlConfig();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -24,16 +24,22 @@ import java.util.Map;
|
||||
public class SupplierSqlConfig {
|
||||
private static Map<String, String> select;
|
||||
|
||||
static {
|
||||
/**
|
||||
* readSqlConfig
|
||||
* <p>读取数据库配置信息
|
||||
* @author :Wind
|
||||
*/
|
||||
public static void readSqlConfig(){
|
||||
select = JDBCTool.selectConfig();
|
||||
}
|
||||
|
||||
/**
|
||||
* SupplierSqlConfig
|
||||
* <p>在类初始化是完成方法调用
|
||||
* refreshSqlConfig
|
||||
* <p>读取并刷新数据库配置
|
||||
* @author :Wind
|
||||
*/
|
||||
private SupplierSqlConfig() {
|
||||
public static void refreshSqlConfig(){
|
||||
readSqlConfig();
|
||||
alibaba();
|
||||
huawei();
|
||||
jingdong();
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
package org.dromara.sms4j.core.factory;
|
||||
|
||||
import org.dromara.sms4j.comm.config.SmsConfig;
|
||||
import org.dromara.sms4j.comm.enumerate.ConfigType;
|
||||
import org.dromara.sms4j.comm.factory.BeanFactory;
|
||||
import org.dromara.sms4j.core.SupplierSqlConfig;
|
||||
import org.dromara.sms4j.emay.config.EmaySmsConfig;
|
||||
import org.dromara.sms4j.aliyun.config.AlibabaSmsConfig;
|
||||
@ -101,6 +104,6 @@ public class SmsFactory {
|
||||
* @author :Wind
|
||||
*/
|
||||
public static void refreshSqlConfig() {
|
||||
SupplierSqlConfig.newSupplierSqlConfig();
|
||||
SupplierSqlConfig.refreshSqlConfig();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user