阅读背景:

Java web 项目读取src或者tomcat下class文件夹下的xml文件或者properties文件

来源:互联网 
//生成一个文件对象:
File file = new File(getClass().getClassLoader().getResource("test.xml").getPath());File file = new File(getClass().getC



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: