struts.properties配置详解
来源:互联网 发布:js输入提示框 编辑:程序博客网 时间:2024/05/10 01:08
在Struts2的核心包中org\apache\struts2文件夹下可以找到Struts2的一个默认配置文件default.properties。有时为了调试方便我们可以更改部分默认内容。具体的方法是在工程的WEB-INF/classes文件夹下简历一个struts.properties文件,并将要修改的信息配置到该文件中
struts.properties:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#指定默认编码集,对于请求参数带有中文的情况应该设置陈GBK或GB2312.默认值UTF-8
struts.i18n.encoding=GB2312
#是否每次HTTP请求到达时,都重新加载国际化资源文件。默认值false
struts.i18n.reload=
true
#但struts.xml改动后,是否重新加载该文件。在开发阶段建议将此属性设置为“true”,提高开发效率。默认值false
struts.configuration.xml.reload=
true
#是否使用Struts2的开发模式,可以获得更多报错信息,便于调试。在开发阶段设置为true。默认值false
struts.devMode =
true
#设置浏览器是否缓存静态页面。开发阶段设置为false,以获得服务器的最新响应。默认值true
struts.serve.static.browserCache=
true
#指定后缀为.action形式的请求可被Struts2处理。可配置多个请求后缀,比如.do、.struts2等,配置时多个后缀名用逗号隔开
struts.action.extension=action,
do
,struts2,
#配置服务器运行时的端口号。一般情况下该属性不修改,如果端口号占用则重新分配端口号。默认值80
struts.url.http.port=8080
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- struts.properties配置详解
- Struts2配置struts.properties详解
- sqoop定时增量导入
- jni的调用
- 如何将已经写好的代码套入新母版页
- JNI入门 一个JNI的HelloWorld 程序
- 业余的以后的目标。
- struts.properties配置详解
- sqlserver将一个表的数据插入到另外一个表里面
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- cin空白與換行輸入處理
- jQuery 获取标签名
- Erdas9.2破解版安装过程
- iOS 5 Storyboard新特性
- Word Search 在一个二维字符矩阵里找单词 @LeetCode
- 不是技术牛人,如何拿到国内IT巨头的Offer