main方法直接调用API接口

public class salaryPay {
    public static String url = "http://192.168.5.138:8033/";// test环境
    private static String check = url + "newApi/card/salaryPay";
    public static void main(String[] args) {
        HttpUtil.httpPost(check, null, new HttpCallBackListener() {
            @Override
            public void success(int response, Header[] headers, String result) {

                System.out.print(response + "响应数据----" + result);
            }
            @Override
            public void failure(int response) {
                System.err.print(response);
            }
        });
    }
}

你可能感兴趣的:(main方法直接调用API接口)