`

Weblogic中MIME的默认配置文件

阅读更多
文件名称:domain/config/mimemappings.properties  
 
js=text/javascript  
css=text/css  
gif=image/gif  
htm=text/html  
html=text/html  
jpeg=image/jpeg  
jpg=image/jpeg  
bmp=image/bmp 

可在此文件中加入自已需要的内容。

个人觉得设置完后,Weblogic可能要重启一下。

从OTN上找到点儿文字,好像有点用:
问题:WebLogic Server Does Not Set MIME Content-Type

WebLogic Server does not set content-type for files with .js and .xml extensions.

To work around this issue, you have to configure these mime types in your environment using one of the following two methods:

Method 1

Add these mime types in the web.xml file of the ESB Web Application.

Method 2

Set the mime type for the entire domain in the config/mimemapping.properties file by performing the following steps:

Login to the WebLogic Server console at

http://hostname:port/console

Click Domain, then Configuration, and then Web Applications.

Search for the Mime parameter.

The value of this parameter shows the location of the mimemappings.properties file.

Create the mimemappings.properties file if the file is not present already.

Add the following entries in the mimemappings.properties file:

xml=text/xml
js=text/javascript
Restart
分享到:
评论

相关推荐

    weblogic mimemappings.properties

    Weblogic中MIME的默认配置文件 文件名称:domain/config/mimemappings.properties 格式如下: js=text/javascript 个人觉得设置完后,Weblogic可能要重启一下。

    weblogic与apache、log4J整合

    配置文件中还需要添加模块加载指令和`<IfModule>`块来包含Weblogic相关的配置文件`Weblogic.conf`。此外,设置DocumentRoot以定义Web应用的根目录。 `Weblogic.conf`是关键的配置文件,它定义了Apache如何将请求...

    Httpd.conf文件中关于WebLogic的设定参数

    此外,如果需要更改 Cookie 名称,还需要在 WebLogic 配置文件中的 `<session-descriptor>` 元素中进行相应的调整。 #### 三、Debug **Debug**: 此参数控制调试日志的输出级别,默认为 `OFF`。调试级别可以设置为 ...

    weblogic.xml说明

    weblogic.xml是Oracle WebLogic Server中用于定义Web应用程序部署特性的核心配置文件。这个文件包含了服务器特定的部署描述符元素,这些元素详细描述了Web应用如何在WebLogic环境中运行。若Web应用不包含weblogic....

    Weblogic实施方案.pdf

    - 为了使IE浏览器能直接打开DOC、XLS、PDF等类型的文件,需要在`WEB-INF/web.xml`文件中添加相应的`<mime-mapping>`配置,例如: ```xml <mime-mapping> <extension>doc <mime-type>application/msword</mime-...

    Weblogic in Chinese Env.pdf

    - **设置默认编码**:在WebLogic服务器配置中明确设置默认的字符编码。 - **使用标准的MIME类型**:在HTTP请求和响应中使用标准的MIME类型和字符集,如`text/html;charset=utf-8`。 - **客户端处理**:在客户端(如...

    Struts2属性文件详解

    该属性用于指定加载Struts 2配置文件的配置文件管理器,默认值为`org.apache.struts2.config.DefaultConfiguration`,这是Struts 2默认的配置文件管理器。若需要实现自定义的配置管理器,则需创建一个实现了`...

    FCKeditor-weblgic8.0-jdk1.4版 本人测试过 (HOT)

    1. 打开WebLogic的管理控制台,找到`服务器` -> `服务器实例` -> `配置` -> `Web服务` -> `MIME类型`。 2. 在MIME类型设置中,添加或修改与图片相关的MIME类型,如`image/jpeg`,并将对应的字符集设置为`UTF-8`。 3....

    Tomcat学习

    每个Web应用都有一个web.xml,它是应用级别的配置文件,定义了Servlet、监听器、过滤器、会话超时、MIME类型映射等。 三、Tomcat性能优化 3.1 JVM调优 选择合适的JVM堆大小、垃圾回收策略和JVM参数(如-Xms, -Xmx,...

    java面试题

    76.5. 在weblogic中发布ejb需涉及到哪些配置文件 87 76.6. 如何在weblogic中进行ssl配置与客户端的认证配置或说说j2ee(标准)进行ssl的配置 87 76.7. 如何查看在weblogic中已经发布的EJB? 87 76.8. 说说在weblogic中...

    ssh(structs,spring,hibernate)框架中的上传下载

     由于Spring通过代理Hibernate完成数据层的操作,所以原Hibernate的配置文件hibernate.cfg.xml的信息也转移到Spring的配置文件中:  代码 4 Spring中有关Hibernate的配置信息 1. 2. !-- 数据源的配置 //--> 3. ...

    JSP动态网页设计基础

    - 应用服务器:ASP主要与IIS(Internet Information Services)搭配,而JSP可以与Tomcat、WebSphere、WebLogic等不同服务器一起工作。 - 脚本语言:ASP使用VBScript,而JSP支持JavaScript以及Java脚本。 **配置Web...

    JSP快速入门教程

    每个应用程序都有一个WEB-INF目录,其中包含`web.xml`配置文件以及`classes`和`lib`子目录,用于存放类文件和库文件。 #### 五、JSP页面的访问 访问JSP页面的URL格式通常为`http://localhost:8080/应用名称/页面...

Global site tag (gtag.js) - Google Analytics