怎么获取web-inf/upload/a.txt 文件?

String projectPath = this.getClass().getResource("/").getPath() + "../upload/a.txt";

你可能感兴趣的:(怎么获取web-inf/upload/a.txt 文件?)