
resin 服务器
文章平均质量分 59
breezylee09
这个作者很懒,什么都没留下…
展开
-
fiter过滤字符编码不起作用
在服务器的web.xml配置以下filter,目的是把以.do结尾的请求设置成GBK编码。<filter> <filter-name>CharacterEncodingFilterGBK</filter-name> <filter-class>org.springframework.web.filter.Chara...原创 2014-08-07 17:24:17 · 267 阅读 · 0 评论 -
防止浏览器下载favicon.ico,mime-mapping
有时候js跨域请求的时候,会无端下载一个叫favicon.ico的文件,解决办法,是在服务器的配置文件里写加上下面一行。 如果resin 服务器,在conf/app-default.xml加一行:<mime-mapping extension=".ico" mime-type="image/jpeg"/>或者:<mime-mapping extension="....原创 2014-03-23 09:26:08 · 244 阅读 · 0 评论 -
resin access日志配置总结 [转]
转:http://wuyilun2.blog.163.com/blog/static/9853110201111910553408/ resin服务器在被访问时,会将访问者的IP、时间、get/set方式、域名后的URL、以及所用的代理记录在logs的access.log文件中。随着用户的不断访问,该日志的内容会不断增加。在resin官方手册中有关于access的配置,可以配置定周期备份...原创 2014-04-09 15:56:08 · 789 阅读 · 0 评论 -
Check that you are using the JDK, not the JRE.
eclipse中集成resin4.0,resin启动提示这个信息的时候:Check that you are using the JDK, not the JRE.在eclipse的preferences设置一个新的jdk运行环境,如下: 然后选择新的jre代替旧的jre,如下:点击“OK”再运行resin即可。 ...原创 2014-04-14 23:08:34 · 365 阅读 · 0 评论 -
springMVC controller层的request和对应view层的request区别
web容器用resin,项目采用springMVC,关键配置如下:<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/WEB-INF/view/" /> ...原创 2014-12-11 11:05:46 · 251 阅读 · 0 评论