Weblogic中MIME的默认配置文件 _Tomcat, WebLogic及J2EE讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Tomcat, WebLogic及J2EE讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 1819 | 回复: 0   主题: Weblogic中MIME的默认配置文件         下一篇 
fendy
注册用户
等级:新兵
经验:51
发帖:58
精华:0
注册:2011-7-21
状态:离线
发送短消息息给fendy 加好友    发送短消息息给fendy 发消息
发表于: IP:您无权察看 2016-1-8 15:12:03 | [全部帖] [楼主帖] 楼主

文件名称: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





--转自



赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论