| | |
| | | import com.ruoyi.common.sms.core.TencentSmsTemplate; |
| | | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | |
| | | public class SmsConfig { |
| | | |
| | | @Configuration |
| | | @ConditionalOnProperty(value = "sms.enabled", havingValue = "true") |
| | | @ConditionalOnClass(com.aliyun.dysmsapi20170525.Client.class) |
| | | static class AliyunSmsConfig { |
| | | |
| | |
| | | } |
| | | |
| | | @Configuration |
| | | @ConditionalOnProperty(value = "sms.enabled", havingValue = "true") |
| | | @ConditionalOnClass(com.tencentcloudapi.sms.v20190711.SmsClient.class) |
| | | static class TencentSmsConfig { |
| | | |