`
hackbomb
  • 浏览: 215131 次
  • 性别: 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.properties介绍

    ### Struts2中的struts.properties配置详解 在Struts2框架中,`struts.properties`文件扮演着极其重要的角色,它用于定义各种配置项来控制框架的行为。下面将详细介绍该文件中的一些关键配置项。 #### struts....

    struts.xml和struts.properties配置详解

    在Struts中,`struts.xml`和`struts.properties`文件是两个核心的配置文件,它们分别负责定义应用的行为和设置全局属性。 **`struts.xml`配置详解** `struts.xml`是Struts 2框架的核心配置文件,用于定义动作映射...

    详解struts2中struts.properties.doc

    在Struts2中,配置文件起着至关重要的作用,其中`struts.xml`用于管理Action映射和Result定义,而`struts.properties`文件则用于定义框架的全局属性。这个文件是基于Properties格式的,存储了一系列键值对,用于定制...

    Struts 2 properties文件详解

    `struts.properties` 文件是Struts 2框架中的核心配置文件之一,它包含了Struts 2框架运行时所需的一系列配置属性。这些属性决定了Struts 2的行为特征以及与其他组件如Spring、文件上传组件等的集成方式。下面将详细...

    struts.properties详解

    通过以上对`struts.properties`文件中各关键配置项的解析,我们可以看出这些配置项对于定制和优化Struts2应用有着至关重要的作用。开发者可以根据实际需求调整这些配置项,以实现更加高效和安全的应用程序。

    struts.properties配置详解

    《Struts2框架中struts.properties配置文件的深入解析》 在Java Web开发领域,Struts2框架以其灵活、高效和强大的功能深受开发者青睐。作为Struts2框架的核心配置之一,struts.properties文件扮演着至关重要的角色...

    struts.properties文件详解

    Struts.properties 文件是 Struts2 框架的核心配置文件之一,它定义了...以上就是 Struts.properties 文件中主要属性的详细说明,理解并适当地配置这些属性可以有效地调整 Struts2 框架的行为,以满足特定项目的需求。

    struts.xml文件详解.doc

    Struts.xml文件是Apache Struts 2...总结来说,struts.properties和struts.xml文件共同构成了Struts 2框架的配置体系,它们分别负责框架的基础属性设置和具体应用行为的定义,为开发者提供了强大的定制能力和灵活性。

    Struts2属性文件详解

    指定了Struts 2应用加载的用户自定义属性文件,自定义属性文件中的设置不会覆盖`struts.properties`文件中的配置。如果需要加载多个自定义属性文件,可以使用英文逗号`,`分隔文件名。 #### struts.mapper.class 该...

    struts2核心配置文件

    `struts.properties` 文件是Struts2框架的另一个核心配置文件,它主要用于定义框架本身的大量属性,开发者可以根据需要修改这些属性来满足特定应用的需求。这些属性主要包括以下几类: 1. **框架配置**: - **...

    struts2的属性配置

    在Struts2中,Action类扮演了控制器的角色,它接收请求,执行相关逻辑,并返回一个表示结果的字符串,这个字符串被用来决定显示哪个视图。 **Struts2框架的执行流程**: 1. 用户发送HTTP请求到服务器。 2. `web.xml...

    Struts2的常量详解

    struts.custom.properties 属性指定 Struts 2 应用加载用户自定义的属性文件,该自定义属性文件指定的属性不会覆盖 struts.properties 文件中指定的属性。 12. struts.mapper.class struts.mapper.class 属性指定...

    truts.xml-struts.properties-详

    在Struts 2中,配置文件主要有两个核心部分:`struts.xml`和`struts.properties`。 **1. struts.xml** `struts.xml`是Struts 2框架的核心配置文件,它定义了Action、结果类型、拦截器等关键元素,用于控制应用程序...

    Struts2文件上传.docx

    5. **文件下载**:在Struts2中,文件下载是通过`Stream Result Type`实现的。在动作类中,你需要读取文件内容并将其流化,然后在配置文件中配置对应的`result`。值得注意的是,文件名不应硬编码在配置文件中,而应...

    Struts2属性文件详解.doc

    属性文件在Struts2中扮演着重要的角色,它们主要用于配置和定制框架的行为。以下是一些主要的Struts2属性及其详细解释: 1. `struts.configuration`:这个属性指定了配置文件管理器,负责加载Struts2的配置文件。...

Global site tag (gtag.js) - Google Analytics