@Component
public class BaseCode {

    //应用key
    public static  String APP_KEY;
    //应用密钥
    public static  String APP_SECRET;
    //不带参数的请求地址
    public static  String REQUEST_URL;

    @Value("${open.appKey}")
    private String appKey;
    @Value("${open.appSecret}")
    private String appSecret;
    @Value("${open.requestUrl}")
    private String requestUrl;

    @PostConstruct
    public void init() {
        APP_KEY = appKey;
        APP_SECRET=appSecret;
        REQUEST_URL=requestUrl;
        //System.out.println("---初始化开放平台api参数---appKey---"+APP_KEY+"---appSecret---"+APP_SECRET+"---url---"+REQUEST_URL+"---");
    }
}

  

相关文章:

  • 2022-12-23
  • 2022-03-03
  • 2021-08-15
  • 2021-08-28
  • 2021-09-07
  • 2021-05-20
  • 2021-06-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案