mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-07 01:18:33 +08:00
修正版本号打印,删除多余的文档
This commit is contained in:
parent
2bc24264b4
commit
8e747a1557
@ -8,7 +8,7 @@
|
|||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>sms-aggregation</name>
|
<name>sms-aggregation</name>
|
||||||
<description>sms_aggregation</description>
|
<description>sms_aggregation</description>
|
||||||
<url>https://gitee.com/MR-wind/sms_aggregation</url>
|
<url>https://gitee.com/dromara/sms_aggregation</url>
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
<name>Apache 2</name>
|
<name>Apache 2</name>
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@ -8,7 +8,7 @@
|
|||||||
<name>sms-aggregation</name>
|
<name>sms-aggregation</name>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<description>sms_aggregation</description>
|
<description>sms_aggregation</description>
|
||||||
<url>https://gitee.com/MR-wind/sms_aggregation</url>
|
<url>https://gitee.com/dromara/sms_aggregation</url>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>sms-aggregation-api</module>
|
<module>sms-aggregation-api</module>
|
||||||
|
|||||||
@ -55,7 +55,6 @@ public class SmsAutowiredConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void init(){
|
void init(){
|
||||||
/* 如果配置中启用了redis,则注入redis工具*/
|
/* 如果配置中启用了redis,则注入redis工具*/
|
||||||
if (BeanFactory.getSmsConfig().getRedisCache()){
|
if (BeanFactory.getSmsConfig().getRedisCache()){
|
||||||
@ -68,7 +67,7 @@ public class SmsAutowiredConfig {
|
|||||||
log.debug("SMS restriction is enabled");
|
log.debug("SMS restriction is enabled");
|
||||||
}
|
}
|
||||||
if (BeanFactory.getSmsConfig().getIsPrint()){
|
if (BeanFactory.getSmsConfig().getIsPrint()){
|
||||||
SmsBanner.PrintBanner("V 1.0.4");
|
SmsBanner.PrintBanner("V 1.0.5");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,7 +20,7 @@ public class RedisUtils {
|
|||||||
@Autowired
|
@Autowired
|
||||||
public void init(RedisConnectionFactory connectionFactory) {
|
public void init(RedisConnectionFactory connectionFactory) {
|
||||||
if (connectionFactory == null){
|
if (connectionFactory == null){
|
||||||
log.error("RedisConnectionFactory not found");
|
log.error("RedisConnectionFactory is not found");
|
||||||
}
|
}
|
||||||
// 指定相应的序列化方案
|
// 指定相应的序列化方案
|
||||||
StringRedisSerializer keySerializer = new StringRedisSerializer();
|
StringRedisSerializer keySerializer = new StringRedisSerializer();
|
||||||
|
|||||||
@ -65,7 +65,6 @@ public class SpringUtil implements ApplicationContextAware {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>说明:创建一个bean
|
* <p>说明:创建一个bean
|
||||||
* @param
|
|
||||||
* @name: createBean
|
* @name: createBean
|
||||||
* @author :Wind
|
* @author :Wind
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -1,72 +0,0 @@
|
|||||||
package kim.wind.sms.core.config;
|
|
||||||
|
|
||||||
import kim.wind.sms.aliyun.config.AlibabaConfig;
|
|
||||||
import kim.wind.sms.huawei.config.HuaweiConfig;
|
|
||||||
import kim.wind.sms.tencent.config.TencentConfig;
|
|
||||||
import kim.wind.sms.unisms.config.UniConfig;
|
|
||||||
import kim.wind.sms.yunpian.config.YunpianConfig;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ConfigFactory
|
|
||||||
* <p>差异化配置工厂用于获取差异化配置对象
|
|
||||||
* @author :Wind
|
|
||||||
* 2023/4/8 14:20
|
|
||||||
**/
|
|
||||||
public class ConfigFactory {
|
|
||||||
private ConfigFactory(){}
|
|
||||||
|
|
||||||
/** 阿里配置*/
|
|
||||||
private static AlibabaConfig alibabaConfig;
|
|
||||||
|
|
||||||
/** 华为配置*/
|
|
||||||
private static HuaweiConfig huaweiConfig;
|
|
||||||
|
|
||||||
/** uniSms配置*/
|
|
||||||
private static UniConfig uniConfig;
|
|
||||||
|
|
||||||
/** 云片配置*/
|
|
||||||
private static YunpianConfig yunpianConfig;
|
|
||||||
|
|
||||||
/** 腾讯配置*/
|
|
||||||
private static TencentConfig tencentConfig;
|
|
||||||
|
|
||||||
/** 获取阿里云配置*/
|
|
||||||
public static AlibabaConfig getAlibabaConfig() {
|
|
||||||
if (alibabaConfig == null){
|
|
||||||
alibabaConfig = new AlibabaConfig();
|
|
||||||
}
|
|
||||||
return alibabaConfig;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 获取华为云配置*/
|
|
||||||
public static HuaweiConfig getHuaweiConfig() {
|
|
||||||
if (huaweiConfig == null){
|
|
||||||
huaweiConfig = new HuaweiConfig();
|
|
||||||
}
|
|
||||||
return huaweiConfig;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** uniSms配置*/
|
|
||||||
public static UniConfig getUniConfig() {
|
|
||||||
if (uniConfig == null){
|
|
||||||
uniConfig = new UniConfig();
|
|
||||||
}
|
|
||||||
return uniConfig;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 云片配置*/
|
|
||||||
public static YunpianConfig getYunpianConfig() {
|
|
||||||
if (yunpianConfig == null){
|
|
||||||
yunpianConfig = new YunpianConfig();
|
|
||||||
}
|
|
||||||
return yunpianConfig;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 腾讯云配置*/
|
|
||||||
public static TencentConfig getTencentConfig() {
|
|
||||||
if (tencentConfig == null){
|
|
||||||
tencentConfig = new TencentConfig();
|
|
||||||
}
|
|
||||||
return tencentConfig;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user