servletContext.getRealPath(String)作用(转)
getRealPath 方法是获取当前项目的绝对磁盘路径
servletContext域对象;
servletContext.getRealPath(""); -->列: D:\apache-tomcat-7.0.52\项目名
servletContext.getRealPath("/"); -->列: D:\apache-tomcat-7.0.52\项目名\
servletContext.getRealPath("/文件名"); -->列: D:\apache-tomcat-7.0.52\项目名\文件名
转:https://blog.csdn.net/weixin_41550207/article/details/79769617
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号