1. 解决weblogic下htc文件无法调用问题
|
在工程的Web.xml文件中加入如下配置代码
|
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);
}
WebLogic技巧集锦
本文介绍了在WebLogic应用服务器环境中的一些实用技巧,包括如何解决HTC文件无法调用的问题、如何进行文件下载设置以及如何获取文件的真实路径。这些技巧对于在WebLogic环境下部署和维护Web应用程序非常有用。
4216

被折叠的 条评论
为什么被折叠?



