houzhongjian
2024-10-16 7da8f196dee8e3c526c009a4bc7f5983ece6bb97
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.system.framework.sms.config;
H 2
3 import com.iailab.module.system.framework.sms.core.client.SmsClientFactory;
4 import com.iailab.module.system.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 }