~~~
String PATH = "文件名";
Properties properties = new Properties();
InputStream isInputStream = RedisPoolConfig.class.getClassLoader().getResourceAsStream(PATH);
try {
properties.load(isInputStream);
System.out.println("[RedisPoolConfig.init]Redis配置文件加载成功!");
} catch (IOException e) {
System.out.println("[RedisPoolConfig.init]Redis配置文件加载失败!");
return;
}
~~~