在main方法中调用读取文件正常,在servlet中调用找不到路径

路径用this.getClass().getResource("文件相对路径").getPath()来获取

猜你喜欢

转载自lwj1113.iteye.com/blog/2292562