spring mvc 项目 系统在那个的相对路径
          String realPath= ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath("/WEB-INF/spring/config.properties") ;
         Properties props=new Properties();
         try {
            props.load(new FileInputStream(realPath));
            realPath=props.getProperty(Constantsw.UPLOAD_PATH);
posted on 2014-01-16 14:44 passer1991 阅读(463) 评论(0) 收藏 举报
                    
                
                
            
        
浙公网安备 33010602011771号