package com.tax.token.thirdService;

import com.tax.token.thirdService.impl.GetTokenFromYongyou;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.stereotype.Component;
import org.springframework.util.ResourceUtils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class YongyouConfig {


    public static InputStream is  = null;



    public static void main(String[] args) throws IOException {
        System.out.println(YongyouConfig.class.getResource("/certificate/pro22.pfx").getFile());
        ClassPathResource resource = new ClassPathResource("/certificate/pro22.pfx");
        System.out.println(ResourceUtils.getFile("/certificate/pro22.pfx").getCanonicalPath());
    }
}
