提交 | 用户 | 时间
|
97edd7
|
1 |
package com.iailab.module.shasteel.framework.sms.config; |
H |
2 |
|
|
3 |
import com.iailab.module.shasteel.framework.sms.core.client.SmsClientFactory; |
|
4 |
import com.iailab.module.shasteel.framework.sms.core.client.impl.SmsClientFactoryImpl; |
|
5 |
import org.springframework.boot.context.properties.EnableConfigurationProperties; |
|
6 |
import org.springframework.context.annotation.Bean; |
|
7 |
import org.springframework.context.annotation.Configuration; |
|
8 |
|
|
9 |
/** |
|
10 |
* 短信配置类,包括短信客户端、短信验证码两部分 |
|
11 |
* |
|
12 |
* @author iailab |
|
13 |
*/ |
|
14 |
@Configuration(proxyBeanMethods = false) |
|
15 |
@EnableConfigurationProperties(SmsCodeProperties.class) |
|
16 |
public class SmsConfiguration { |
|
17 |
|
|
18 |
@Bean |
|
19 |
public SmsClientFactory smsClientFactory() { |
|
20 |
return new SmsClientFactoryImpl(); |
|
21 |
} |
|
22 |
|
|
23 |
} |