﻿package com.hzg.tools;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties("sfExpress")
public class SfExpress {
    private String appId;
    private String appKey;
    private String custId;
    private String payArea;

    private String tokenUri;
    private String tokenRefreshUri;
    private String orderUri;
    private String imageUri;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getPayArea() {
        return payArea;
    }

    public void setPayArea(String payArea) {
        this.payArea = payArea;
    }

    public String getTokenUri() {
        return tokenUri;
    }

    public void setTokenUri(String tokenUri) {
        this.tokenUri = tokenUri;
    }

    public String getTokenRefreshUri() {
        return tokenRefreshUri;
    }

    public void setTokenRefreshUri(String tokenRefreshUri) {
        this.tokenRefreshUri = tokenRefreshUri;
    }

    public String getOrderUri() {
        return orderUri;
    }

    public void setOrderUri(String orderUri) {
        this.orderUri = orderUri;
    }

    public String getImageUri() {
        return imageUri;
    }

    public void setImageUri(String imageUri) {
        this.imageUri = imageUri;
    }
}

package com.hzg.tools;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties("sfExpress")
public class SfExpress {
    private String appId;
    private String appKey;
    private String custId;
    private String payArea;

    private String tokenUri;
    private String tokenRefreshUri;
    private String orderUri;
    private String orderQueryUri;
    private String imageUri;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getPayArea() {
        return payArea;
    }

    public void setPayArea(String payArea) {
        this.payArea = payArea;
    }

    public String getTokenUri() {
        return tokenUri;
    }

    public void setTokenUri(String tokenUri) {
        this.tokenUri = tokenUri;
    }

    public String getTokenRefreshUri() {
        return tokenRefreshUri;
    }

    public void setTokenRefreshUri(String tokenRefreshUri) {
        this.tokenRefreshUri = tokenRefreshUri;
    }

    public String getOrderUri() {
        return orderUri;
    }

    public void setOrderUri(String orderUri) {
        this.orderUri = orderUri;
    }

    public String getOrderQueryUri() {
        return orderQueryUri;
    }

    public void setOrderQueryUri(String orderQueryUri) {
        this.orderQueryUri = orderQueryUri;
    }

    public String getImageUri() {
        return imageUri;
    }

    public void setImageUri(String imageUri) {
        this.imageUri = imageUri;
    }
}

adjust sfExpress constant