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

com.liumapp.datapay.ocr.car.config.CarOperatorConfig Maven / Gradle / Ivy

There is a newer version: v2.0.5
Show newest version
package com.liumapp.datapay.ocr.car.config;

import com.liumapp.datapay.ocr.car.bean.CarApi;
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/23.
 * E-mail:[email protected]
 * github:https://github.com/haoxiaoyong1014
 */
@Configuration
public class CarOperatorConfig {

    @Bean("ocrHttpTool")
    public HttpTool httpTool () {
        return new HttpTool();
    }
    @Bean
    @ConfigurationProperties(prefix = "com.haoxy.car")
    public CarApi carApi(){
        CarApi carApi=new CarApi();
        carApi.setHost("http://api.chinadatapay.com/");
        carApi.setPath("trade/user/2009");
        return carApi;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy