private static Properties getProperties() throws IOException {
if (properties == null) {
properties = new Properties();
properties.load(Thread.currentThread().getContextClassLoader()
.getResourceAsStream("factory.properties"));//目录src下factory.properties
}
return properties;
}