struts.properties配置详解
来源:互联网 发布:java lamda 编辑:程序博客网 时间:2024/05/20 17:40
在Struts2的核心包中org\apache\struts2文件夹下可以找到Struts2的一个默认配置文件default.properties。有时为了调试方便我们可以更改部分默认内容。
#指定默认编码集,对于请求参数带有中文的情况应该设置陈GBK或GB2312.默认值UTF-8struts.i18n.encoding=GB2312#是否每次HTTP请求到达时,都重新加载国际化资源文件。默认值falsestruts.i18n.reload=true#当struts.xml改动后,是否重新加载该文件。在开发阶段建议将此属性设置为“true”,提高开发效率。默认值falsestruts.configuration.xml.reload=true#是否使用Struts2的开发模式,可以获得更多报错信息,便于调试。在开发阶段设置为true。默认值falsestruts.devMode = true#设置浏览器是否缓存静态页面。开发阶段设置为false,以获得服务器的最新响应。默认值truestruts.serve.static.browserCache=true#指定后缀为.action形式的请求可被Struts2处理。可配置多个请求后缀,比如.do、.struts2等,配置时多个后缀名用逗号隔开struts.action.extension=action,do,struts2,#配置服务器运行时的端口号。一般情况下该属性不修改,如果端口号占用则重新分配端口号。默认值80struts.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详解
- Android错误:W/ResourceType(2411): No package identifier when getting value for resource number 0x
- 时间管理--给系统管理员1
- FreeBSD下使用山特UPS
- 一个绝对可以安装MyEcipse插件的方法
- MySQL优化
- struts.properties配置详解
- HDU1709 The Balance,母函数套题
- 【媒体报道】风起亚洲公有云—《程序员》杂志企业专栏报道
- MySQL: 基于 jdbc 远程操作
- 只有一个Service或Broadcast Reciver的android应用
- svn地址
- 自定义一个方言类——Hibernate Dialect
- 网赚教程之个人站长域名省钱策略
- javascript中的函数