1.普通工程:配置文件在src/main/resources下
Properties prop = new Properties();
prop.load(new FileInputStream("ipFilter.properties"));
2.web工程:配置文件在src/main/resources目录下
Properties prop = new Properties();
prop.load(this.getClass().getResourceAsStream("/ipFilter.properties"));