struts.convention.action. alwaysMapExecute |
true |
Set to false, to prevent Convention from creating a default mapping to "execute" when there are other methods annotated as actions in the class |
struts.convention.action. includeJars |
|
Comma separated list of regular expressions of jar URLs to be scanned. eg. ".myJar-0\.2.,.thirdparty-0\.1." |
struts.convention.action. packages |
|
An optional list of action packages that this should create configuration for (they don't need to match a locator pattern) |
struts.convention.result. path |
/WEB-INF/content/ |
Directory where templates are located |
struts.convention.result. flatLayout |
true |
If set to false, the result can be put in its own directory: resultsRoot/namespace/actionName/result.extension |
struts.convention.action. suffix |
Action |
Suffix used to find actions based on class names |
struts.convention.action. disableScanning |
false |
Scan packages for actions |
struts.convention.action. mapAllMatches |
false |
Create action mappings, even if no @Action is found |
struts.convention.action. checkImplementsAction |
true |
Check if an action implements com.opensymphony.xwork2.Action to create an action mapping |
struts.convention.default. parent.package |
convention-default |
Default parent package for action mappins |
struts.convention.action. name.lowercase |
true |
Convert action name to lowercase |
struts.convention. action.name.separator |
- |
Separator used to build the action name, MyAction -> my-action. This character is also used as the separator between the action name and the result in templates, like action-result.jsp |
struts.convention. package.locators |
action,actions,struts, struts2 |
Packages whose name end with one of these strings will be scanned for actions |
struts.convention.package. locators.disable |
false |
Disable the scanning of packages based on package locators |
struts.convention.exclude. packages |
org.apache.struts.*, org.apache.struts2.*, org.springframework. web.struts.*, org.springframework. web.struts2.*, org.hibernate.* |
Packages excluded from the action scanning |
struts.convention.package. locators.basePackage |
|
If set, only packages that start with its value will be scanned for actions |
struts.convention.relative. result.types |
dispatcher,velocity, freemarker |
The list of result types that can have locations that are relative and the result location (which is the resultPath plus the namespace) prepended to them |
struts.convention.redirect. to.slash |
true |
A boolean parameter that controls whether or not this will handle unknown actions in the same manner as Apache, Tomcat and other web servers. This handling will send back a redirect for URLs such as /foo to /foo/ if there doesn't exist an action that responds to /foo |
struts.convention.classL oader.excludeParent |
true |
Exclude URLs found by the parent class loader from the list of URLs scanned to find actions (needs to be set to false for JBoss 5) |
struts.convention.action.eagerLoading |
false |
If set, found action classes will be instantiated by the ObjectFactory to accelerate future use, setting it up can clash with Spring managed beans |
相关推荐
STRUTS2:零配置插件CodeBehind
简述STRUTS2_Convention零配置
Struts2中使用annotation实现零配置
默认包路径包含action,actions,struts,struts2的所有包都会被struts作为含有Action类的路径来搜索。你可以通过设置struts.convention.package.locators属性来修改这个配置。如: <constant name="struts.convention....
本资源详细讲解了一些Struts2中的常量配置。
NULL 博文链接:https://chouyi.iteye.com/blog/1562682
从struts2.1开始,struts2不再推荐使用Codebehind作为零配置插件,而是改为使用Convention插件来支持零配置,和Codebehind相比,Convention插件更彻底,该插件完全抛弃配置信息,不仅不需要是使用struts.xml文件进行...
Struts2的常量详解,里面涵盖了许多Struts2的常量的详细解释
struts2配置文件以及代码示例struts2配置文件以及代码示例struts2配置文件以及代码示例struts2配置文件以及代码示例struts2配置文件以及代码示例struts2配置文件以及代码示例struts2配置文件以及代码示例struts2配置...
关于struts2的一些常用常量的详细见解,避免使用时的冲突滴答滴答滴答滴答滴答滴答滴答
如何使用插件convention来实现struts2框架的零配置以及整合ssh架构
struts.properties文件中的每一个常量都有详细的介绍
从struts2.1开始,struts2不再推荐使用Codebehind作为零配置插件,而是改为使用Convention插件来支持零配置,和Codebehind相比,Convention插件更彻底,该插件完全抛弃配置信息,不仅不需要是使用struts.xml文件进行...
该项目主要是struts2.3的零配置,里面包含两个action,下载后导入myeclipse后,部署后。可以直接访问http://localhost:8080/struts2/abc.action、login.action\login1.action。这里的返回值是以json方式返回。
NULL 博文链接:https://username2.iteye.com/blog/1817573
STRUTS2零配置.docSTRUTS2零配置.docSTRUTS2零配置.doc
一个简单的struts2的手动配置一个简单的struts2的手动配置一个简单的struts2的手动配置
struts2配置过滤器 示例代码