All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liumapp.datapay.sms.config.SmsOperatorConfig Maven / Gradle / Ivy

There is a newer version: v2.0.5
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy