com.liumapp.datapay.ocr.car.config.CarOperatorConfig Maven / Gradle / Ivy
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;
}
}