AppProperties.java 1.04 KB
package com.bsth.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Hill
 */
@Component
public class AppProperties {

    private static int cacheDays;

    private static String controlUrl;

    private static String secretKey;

    private static String gpsUrl;

    public static int getCacheDays() {
        return cacheDays;
    }

    public static void setCacheDays(int cacheDays) {
        AppProperties.cacheDays = cacheDays;
    }

    public static String getControlUrl() {
        return controlUrl;
    }

    public static void setControlUrl(String controlUrl) {
        AppProperties.controlUrl = controlUrl;
    }

    public static String getSecretKey() {
        return secretKey;
    }

    public static void setSecretKey(String secretKey) {
        AppProperties.secretKey = secretKey;
    }

    public static String getGpsUrl() {
        return gpsUrl;
    }

    public static void setGpsUrl(String gpsUrl) {
        AppProperties.gpsUrl = gpsUrl;
    }
}