传入任意的文件名
private static Properties properties = null;
private static PropertieTools tool = null;
public static PropertieTools getInstance(String propertiesname )
{
if (tool == null)
{
tool = new PropertieTools();
properties = new Properties();
try
{
properties.load(new PropertieTools().getClass()
.getClassLoader()
.getResourceAsStream(propertiesname));
}
catch (IOException e)
{
LoggerUtil.error(e);
}
}
return tool;
}