buser 发表于 2017-2-13 11:44:34

Weblogic troubleshooting

  1. 解决weblogic下htc文件无法调用问题
  在工程的Web.xml文件中加入如下配置代码
  
<mime-mapping>
    <extension>htc</extension

  2. 文件下载
  response.reset();
  
  3. 取realpath
  ServletContext context;
  if ("weblogic".equalsIgnoreCase(AppProperty.getPropertyVal(AppProperty.APP_SERVER))) {
                URL url = context.getResource("/");
                strRealPath = url.getPath() + path;
            } else {
                strRealPath =
                    context.getRealPath("//" + path);
            }
  
  
页: [1]
查看完整版本: Weblogic troubleshooting