struts.properties
来源:互联网 发布:人民网 网络彩票牌照 编辑:程序博客网 时间:2024/06/10 03:40
1)struts.properties的主要作用
Struts.properties是管理Struts2框架中定义的大量常量。其文件必须放到Web应用下的类加载路径下才能使用,即WEB-INF/classes路径下。
2)struts.properties关键元素分析
1.struts.i18n.encoding:该常量指定了 Web 应用中的默认编码集。通常,由于使用中文字符集,将其设置为UTF-8 。
2.struts.devMode:该常量指定 Struts 2是否使用开发模式。当值设为 true 时,表示使用开发模式,可以在应用程序出错时显示更详细的出错提示。其默认值为false 。
通常,在开发阶段,建议使用开发模式;当产品发布后,则可将该常量设置为false 。
3.struts.configuration :该常量指定Struts 2框架的配置管理器,如果程序员要开发自己的配置管理器,需实现一个 Configuration 接口的类,该类会自己加载 Struts 2配置文件。
4.struts.locale :该常量指定Web 应用的默认Locale ,默认的Locale 是en_US 。
5.struts.action.extension :该常量指定由 Struts 2处理的请求后缀。程序员可以根据需要设置,默认的后缀是action ,要设置多个请求后缀时要用逗号隔开。
6.struts.tag.altSyntax :该常量指定是否在Struts 2标签中使用表达式语法,一般设置为true 。
7.struts.ui.theme :该常量指定视图中Struts 2标签默认的主题,默认值是xhtml。
8.struts.custom.i18n.resources :该常量指定 Web 应用所需要的国际化资源文件,多个文件名用逗号隔开。
9.struts.custom.properties :该常量指定加载附加的配置文件的位置。
10.struts.enable.DynamicMethodInvocation :该常量指定Struts 2 框架是否支持动态方法调用,默认值为true ,如果要关闭动态方法调用,设置该常量为false 。
11.struts.i18n.reload :该常量指定国际化信息是否自动加载,默认值为 true ,如果不自动加载国际化信息,则设置该常量为false 。
12.struts.url.http.port:该常量指定Web 应用的端口。
- struts.properties
- Struts.properties
- Struts.properties
- Struts.properties
- struts.properties
- struts.properties
- struts.properties
- struts.properties
- Struts.properties
- struts.properties
- struts.properties
- struts2 default.properties struts.properties struts.xml
- Struts struts.properties 配置文件详解
- struts的struts.properties详解
- struts.xml和struts.properties
- struts.xml与struts.properties
- struts.xml和struts.properties
- struts.xml和struts.properties
- Hibernate的Disjunction和Conjunction
- uva 10391
- 算法系列——最长公共子串
- Android 环境搭建时的下载问题
- SPV、SPV节点和SPV钱包
- struts.properties
- Android 7.0之后安装APK,拍照 出现FileUriExposedException,多个provider配置
- golang语言-2-go基本语法
- 表单(三)选择框
- JQuery进行Ajax请求的四种方式
- 快速排序
- Yii2.0 AR-CURD小表单简单操作
- 基本的图像分割方法综述
- Python学习笔记——import导入模块