package com.test;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public enum PropertiesUtil {
INSTANCE;
private volatile Properties configuration = new Properties();
private PropertiesUtil() {
System.out.println("==========init===============");
InputStream is = this.getClass().getResourceAsStream("/system.properties");
if (is != null) {
try {
this.configuration.clear();
this.configuration.load(is);
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
is.close();
} cat