package com.skyline.electricity.utils;
|
|
import org.springframework.core.env.*;
|
|
public class PropertiesUtil
|
{
|
private static Environment env;
|
|
public static void setEnvironment(final Environment env) {
|
PropertiesUtil.env = env;
|
}
|
|
public static String getProperty(final String key) {
|
return PropertiesUtil.env.getProperty(key);
|
}
|
|
static {
|
PropertiesUtil.env = null;
|
}
|
}
|