@Configuration @EnableConfigurationProperties(value=net.guerlab.sms.chinamobile.ChinaMobileProperties.class) @AutoConfigureAfter(value=net.guerlab.sms.server.autoconfigure.SmsConfiguration.class) public class ChinaMobileAutoConfigure extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ChinaMobileAutoConfigure.ChinaMobileSendHandlerCondition |
| 构造器和说明 |
|---|
ChinaMobileAutoConfigure() |
| 限定符和类型 | 方法和说明 |
|---|---|
ChinaMobileSendHandler |
chinaMobileSendHandler(ChinaMobileProperties properties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
net.guerlab.sms.server.loadbalancer.SmsSenderLoadBalancer loadbalancer,
org.springframework.context.ApplicationEventPublisher eventPublisher,
org.springframework.web.client.RestTemplate restTemplate)
构造移动云发送处理
|
@Bean @Conditional(value=ChinaMobileAutoConfigure.ChinaMobileSendHandlerCondition.class) @ConditionalOnBean(value=net.guerlab.sms.server.loadbalancer.SmsSenderLoadBalancer.class) public ChinaMobileSendHandler chinaMobileSendHandler(ChinaMobileProperties properties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, net.guerlab.sms.server.loadbalancer.SmsSenderLoadBalancer loadbalancer, org.springframework.context.ApplicationEventPublisher eventPublisher, org.springframework.web.client.RestTemplate restTemplate)
properties - 配置对象objectMapper - objectMapperloadbalancer - 负载均衡器eventPublisher - spring应用事件发布器restTemplate - RestTemplateCopyright © 2021 guerlab. All rights reserved.