参考博文(http://www.360doc.com/content/11/1009/17/4602013_154657565.shtml) web项目发布到Tomcat之后,如果tomcat是安装在比如 C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\**** 那么你获取当前类的路径的时候,就会出现问题,因为它会报出%20 C:\Program%20Files\Apache%20Software%20Foundati…