- private String getData(String key) {
- InputStream inputStream = this.getClass().getClassLoader()
- .getResourceAsStream("conf/upload-image.properties");
- Properties p = new Properties();
- try {
- p.load(inputStream);
- } catch (IOException e1) {
- e1.printStackTrace();
- }
- return p.getProperty(key);
- }
jsp 读取配置文件
最新推荐文章于 2023-04-07 13:24:32 发布