tomcat获取路径时包括一个“/”
weblogic获取路径时不包括最后的“/”
String strVendor="weblogic";
//得到系统路径
if ("weblogic".equals(strVendor)){
ServletContext app=(ServletContext)pageContext.getServletContext();
String strSysPath = app.getRealPath("/") + "/NEUUpdate/";
}else{
ServletContext app=(ServletContext)pageContext.getServletContext();
String strSysPath = app.getRealPath("/") + "NEUUpdate/";
}
weblogic和tomcat获取的应用路径不一样
最新推荐文章于 2021-09-20 12:15:11 发布