String pathString = TbProRatingAction.class.getResource("/").getFile();
这句话的意思就是获得容器的资源文件的路径:
打印结果是:D:/work/project/apache-tomcat-6.0.35/webapps/fund/WEB-INF/classes/
String pathString = TbProRatingAction.class.getResource("/").getFile();
这句话的意思就是获得容器的资源文件的路径:
打印结果是:D:/work/project/apache-tomcat-6.0.35/webapps/fund/WEB-INF/classes/