spring mvc 项目 系统在那个的相对路径
时间:2014-01-17 00:32:18
收藏:0
阅读:499
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);
原文:http://www.cnblogs.com/passer1991/p/3522512.html
评论(0)
