Weblogic war包部署时获取Web根目录问题
在Weblogic当中如果以war包方式部署则不能用request.getRealPath("/")获取web根目录, this.getClass().getClassLoader().getResource("/").getPath()即可获取: /** * 获取web目录,Weblogic 默认以war包部署的时候不能用getRealPath * getResource(&...
阅读全文在Weblogic当中如果以war包方式部署则不能用request.getRealPath("/")获取web根目录, this.getClass().getClassLoader().getResource("/").getPath()即可获取: /** * 获取web目录,Weblogic 默认以war包部署的时候不能用getRealPath * getResource(&...
阅读全文