com.zusmart.basic.config.Configuration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zusmart-basic Show documentation
Show all versions of zusmart-basic Show documentation
基础模块,提供配置,日志,SPI,图排序,路径匹配,资源扫描,包扫描,常用工具类
package com.zusmart.basic.config;
import java.util.Map;
import java.util.Properties;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import com.zusmart.basic.logging.Logger;
import com.zusmart.basic.logging.LoggerFactory;
import com.zusmart.basic.toolkit.StringUtils;
public class Configuration {
private static final Logger logger = LoggerFactory.getLogger(Configuration.class);
private static final String prefix = "zusmart";
private static final Map properties = new ConcurrentHashMap();
public static final String DEFAULT_EXTENSION_VALUE = "internal";
static {
initSystem();
}
public static void initSystem() {
Properties systemProperties = System.getProperties();
for (Entry