`
hackbomb
  • 浏览: 213266 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

struts2的struts.properties文件中的配置属性

阅读更多

按照字母排序

struts.action.extension           The URL extension to use to determine if the request is meant for a Struts action            用URL扩展名来确定是否这个请求是被用作Struts action,其实也就是设置action的后缀, 例如login.do的\'do\'字,多个后缀以,隔开

struts.configuration           The org.apache.struts2.config.Configuration implementation class              指定加载strut2配置文件的配置文件管理器, 默认值是 org.apache.struts2.config.Configuration接口名

struts.configuration.files           A list of configuration files automatically loaded by Struts         struts自动加载的一个配置文件列表,多个配置文件之间以,隔开,默认值是struts-default.xml,struts- plugin.xml,struts.xml

struts.configuration.xml.reload           Whether to reload the XML configuration or not            是否自动重新加载xml配置(true,false),默认值是false

struts.continuations.package            The package containing actions that use Rife continuations            含有actions的完整连续的package名称

struts.custom.properties           Location of additional configuration properties files to load            加载附加的配置文件的位置,该文件不能覆盖struts.properties文件中指定的属性,多个自定义属性文件以,隔开

struts.custom.i18n.resources           Location of additional localization properties files to load            加载附加的国际化属性文件(不包含.properties后缀),多个资源文件以,隔开

struts.devMode           Whether Struts is in development mode or not            是否为struts开发模式,默认值是false,开发阶段使用true,发布阶段使用false,区别在于true的时候会在应用出错时显示更多、更友 好的出错提示。

struts.dispatcher.parametersWorkaround           Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic             对于某些javaEE服务器,不支持HttpServletRequest调用getParameterMap()方法,可以设置该属性值为true来解 决。默认值是false。对于Weblogic、Orion和OC4J服务器,通常设置为true

struts.enable.DynamicMethodInvocation           Allows one to disable dynamic method invocation from the URL             是否允许动态方法调用,默认值是true,关闭动态方法调用,设置为false

struts.enable.SlashesInActionNames                                                                                                                                          是否允许在Action名中使用斜线,默认值是false,允许使用设置为true

struts.freemarker.manager.classname           The org.apache.struts2.views.freemarker.FreemarkerManager implementation class           指定struts2使用的FreeMarker管理器,默认值是 org.apache.struts2.views.freemarker.FreemarkerManager接口名

struts.freemarker.wrapper.altMap                                                                                                                                                            默认值是true

struts.i18n.encoding           The encoding to use for localization messages            国际化信息内码,中文设置为GBK或GB2312

struts.i18n.reload           Whether the localization messages should automatically be reloaded            设置是否每次HTTP请求到达时,系统都重新加载资源文件,默认值是false,开发阶段设置为true,发布阶段设置为false,是否国际化信息自动 加载

struts.locale           The default locale for the Struts application            默认的国际化地区信息

struts.mapper.class           The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class             org.apache.struts2.dispatcher.mapper.ActionMapper接口(默认)      指定将http请求映射到指定Action的映射器,默认映射器根据请求的前缀与Action的name属性完成映射

struts.multipart.maxSize           The maximize size of a multipart request (file upload)            multipart请求信息的最大字节数(文件上传用)

struts.multipart.parser           The org.apache.struts2.dispatcher.multipart.           MultiPartRequest parser implementation for a multipart request (file upload)           专为multipart请求信息使用的 org.apache.struts2.dispatcher.multipart.MultiPartRequest解析器接口(文件上传用)支持 cos/pell/jakarta等属性,默认值是jakarta

struts.multipart.saveDir           The directory to use for storing uploaded files            设置存储上传文件的临时目录夹,默认值是javax.servlet.context.tempdir

struts.objectFactory           The com.opensymphony.xwork2.ObjectFactory implementation class           指定struts2默认的ObjectFactory Bean, com.opensymphony.xwork2.ObjectFactory接口(默认值是spring)

struts.objectFactory.spring.autoWire           Whether Spring should autoWire or not            是否自动绑定Spring,自动装配模式,默认属性是name

struts.objectFactory.spring.useClassCache           Whether Spring should use its class cache or not            是否spring应该使用自身的cache,是否缓存bean实例,默认值是true

struts.objectTypeDeterminer           The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class             com.opensymphony.xwork2.util.ObjectTypeDeterminer接口,指定struts2的类型检测机制,通常支持tiger和notiger两个属性值

struts.serve.static.browserCache   If static content served by the Struts filter should set browser caching header properties or not     是否struts过滤器中提供的静态内容应该被浏览器缓存在头部属性中,开发中设置为false,每次请求都能获得最新响应

struts.serve.static           Whether the Struts filter should serve static content or not            是否struts过滤器应该提供静态内容,默认属性值是true

struts.tag.altSyntax           Whether to use the alterative syntax for the tags or not            是否可以用表达式语法替代tags,默认值是true

struts.ui.templateDir           The directory containing UI templates            指定视图主题所需要模板文件的位置,默认值是template,即默认加载template路径下的模板文件

struts.ui.theme           The default UI template theme            指定视图标签默认的视图主题,默认值是xhtml

struts.url.http.port           The HTTP port used by Struts URLs            指定web应用所在的监听端口

struts.url.https.port           The HTTPS port used by Struts URLs            指定web应用的加密服务端口

struts.url.includeParams           The default includeParams method to generate Struts URLs           指定struts2生成url时是否包含请求参数,该属性接受none、get和all三个属性值,分别对应于不包含、仅包含get类型请求参数和包含全部请求参数

struts.velocity.configfile           The Velocity configuration file path           指定Velocity框架所需的velocity.properties文件的位置。默认值是velocity.properties

struts.velocity.contexts           List of Velocity context names           指定Velocity框架的Context位置,多个Context之间以,隔开

struts.velocity.manager.classname           org.apache.struts2.views.velocity.VelocityManager implementation class            org.apache.struts2.views.velocity.VelocityManager接口名

struts.velocity.toolboxlocation           The location of the Velocity toolbox           指定velocity工具盒的位置

struts.xslt.nocache           Whether or not XSLT templates should not be cached            指定XSLT模版是否使用样式表缓存,开发阶段用true,发布阶段用false

分享到:
评论

相关推荐

    struts2的struts.properties配置文件详解

    Struts2的Struts.properties配置文件详解 Struts2是一个基于MVC模式的...通过对Struts.properties配置文件中的这些参数进行设置和配置,开发者可以根据需要自定义Struts2的行为和性能,提高应用程序的开发效率和性能。

    Struts课堂笔记.rar--struts2的struts.properties配置文件详解

    是否struts过滤器中提供的静态内容应该被浏览器缓存在头部属性中 struts.serve.static Whether the Struts filter should serve static content or not 是否struts过滤器应该提供静态内容 struts.tag....

    Struts2属性文件详解

    该属性指定Struts 2应用加载用户自定义的属性文件,该自定义属性文件指定的属性不会覆盖struts.properties文件中指定的属性.如果需要加载多个自定义属性文件,多个自定义属性文件的文件名以英文逗号(,)隔开. struts....

    struts2的属性配置

    讲述了配置struts2的三种方法:struts.xml struts.properties web.xml

    Struts2入门教程(全新完整版)

    1.概述strust2中的拦截器 28 2.自定义拦截器 28 方式一,实现Interceptor接口。 28 方式二、继承AbstractInterceptor抽象类 29 方式三、继承MethodFilterInteceptor类 30 3.使用来MethodFilterInterceptor灵活拦截 ...

    Java-Properties-file:如何在Java中读取config.properties值?

    Java属性文件 如何在Java中读取config.properties值? 主跑 java crunchify / com / tutorial / CrunchifyReadConfigMain 参考

    Struts2\constant应用

    <!-- 指定Web应用的默认编码集,相当于调用HttpServletRequest的setCharacterEncoding方法 --> <constant name="struts.i18n.encoding" value="UTF-8" /> ...该属性指定Struts 2中的action由哪个容器创建

    Struts 2中的constant配置详解

    通过对这些属性的配置,可以改变Struts 2 框架的一些默认行为,这些配置可以在struts.xml文件中完成,也可以在struts.properties文件中完成

    关于SSH中文乱码的一个小总结.doc

    本文将总结解决SSH中文乱码问题的方法,主要涉及到spring的编码过滤器、struts.properties配置、MyEclipse工程属性设置等方面。 一、 Spring 的编码过滤器 Spring提供了一个CharacterEncodingFilter来解决中文乱码...

    struts2_spring3_hibernate3_1.1

    将hibernate实体映射集成到spring配置文件中。 B.使用properties文件配置数据源 3.使用传统的配置文件集成框架。 A.视图层使用struts标签。 B.对用户输入验证 1.controller验证属性 2.使用Validate ...

    JAVA SSH青协志愿服务管理系统源码.rar

    log4j.properties 日志文件 *.properties配置文件 Struts.xml 配置action WebRoot根目录 fckeditor在线编辑器, images img 图片 upload,updown 上传下载, admin common 前台JSP页面 WEB-INF (lib+jsp+*.xml) ...

    JAVA SSH青协志愿服务管理系统源码

    log4j.properties 日志文件 *.properties配置文件 Struts.xml 配置action WebRoot根目录 fckeditor在线编辑器, images img 图片 upload,updown 上传下载, admin common 前台JSP页面 WEB-INF (lib+jsp+*.xml) ...

    深入浅出Struts2(附源码)

    2.4.2 struts.properties文件 26 2.5 Struts应用程序示例 26 2.5.1 部署描述文件和Struts配置文件 27 2.5.2 动作类 28 2.5.3 运行app02a程序 29 2.6 依赖注入 29 2.6.1 概述 29 2.6.2 依赖注入的几种方式 31 ...

    深入浅出Struts 2 .pdf(原书扫描版) part 1

    2.4.2 struts.properties文件 26 2.5 Struts应用程序示例 26 2.5.1 部署描述文件和Struts配置文件 27 2.5.2 动作类 28 2.5.3 运行app02a程序 29 2.6 依赖注入 29 2.6.1 概述 29 2.6.2 依赖注入的几种方式 31 2.7 小...

    s2sh + extjs4 办公平台架构

    物超所值 系统架构:s2sh + extjs4, 配置我采用传统的xml配置,并没有使用注解的形式,是因为我考虑到xml... skyline\coding\build.properties 为ant属性文件 build.xml 为发布使用的ant配置文件 请按照实际环境来部署

    搭建好的一个struts2环境

    为了方便初学者使用Struts2,我配置了一个Struts2空项目,可以直接使用Struts2,IDE使用的是MyEclipse6.5 使用方法: 1.在包com.test.web.action添加类,比如Test1Action.java,该类需要继承ActionSupport 2.在Web...

    Java加载properties文件实现方式详解

    主要介绍了Java加载properties文件实现方式详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下

    jakarta-tomcat-connectors-jk2.0.4-win32-IIS.zip

    1、配置环境变量 JAVA_HOME 和 TOMCAT_HOME 2、将 isapi_redirector2.dll 文件拷贝到 TOMCAT_HOME 中的任意一个目录中,如:... 7、拷贝 jk2.properties 、 workers2.properties 两个文件到 TOMCAT_HOME/conf 目录中

Global site tag (gtag.js) - Google Analytics