com.liumapp.datapay.sms.config.SmsOperatorConfig Maven / Gradle / Ivy
package com.liumapp.datapay.sms.config;
import com.liumapp.datapay.sms.bean.SmsApi;
import com.liumapp.qtools.http.HttpTool;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Created by haoxy on 2018/11/3.
* E-mail:[email protected]
* github:https://github.com/haoxiaoyong1014
*/
@Configuration
public class SmsOperatorConfig {
@Bean("realnameHttpTool")
public HttpTool httpTool() {
return new HttpTool();
}
@Bean
@ConfigurationProperties(prefix = "com.haoxy.sms")
public SmsApi smsApi() {
SmsApi smsApi = new SmsApi();
smsApi.setUserCode("xxxx");
smsApi.setUserPass("xxxx");
smsApi.setSignTrue("【放心签】");
smsApi.setUrl("http://120.55.197.77:1210/Services/MsgSend.asmx/SendMsg");
return smsApi;
}
}