struts2插件convention-plugin 零配置 简介
Convention Plugin
原文:doc.guandang.net;翻译:石太祥 (ealpha@gmail.com doc.guandang.net;)
· · · · · · · · · o o o o o o o · · · o o ·
1 2
3 Converting a Codebehind based application to Convention 4
5 6 Results and result codes 7
8 XWork packages
9 9.1 9.2 InterceptorRef annotation 9.3 9.4 Namespace annotation 9.5 9.6 9.7 ExceptionMapping Annotation
10
11 Automatic configuration reloading 12 12.1 12.2 Common Errors 13 Configuration reference
Introduction
从 struts2.1版本开始,Convention Plugin 作为替换替换 Codebehind Plugin 来实现 Struts2 的零配置。
· · · · · · · · · ·
包命名习惯来指定 Action 位置
命名习惯制定结果(支持 JSP,FreeMarker 等)路径 类名到 URL 的约定转换
包名到命名空间(namespace)的约定转换
遵循 SEO 规范的链接地址(即:使用 myaction 来替代 MyAction) 基于注解的 Action名
基于注解的拦截机(Interceptor) 基于注解的命名空间(Nameespace) 基于注解的 XWork 包
默认 action 以及默认的结果(比如:/products 将会尝试寻找
com.example.actions.Products 或 com.example.actions.products.Index 进行处理)
struts2采用convention-plugin实现零配置_IT/计算机_专业资料。struts2采用...method1.action 时,返回 www.baidu.com 标签: Struts convention 插件 ...
Struts2的Convention插件的好处与使用_计算机软件及应用_IT/计算机_专业资料。...[url]http://struts.apache.org/2.1.6/docs/convention-plugin.html [/url...
struts2-convention-plugin-2.1.8.1.jar中的配置文件详解_IT/计算机_专业....convention.result.path" value="/WEB-INF/content/"/> 设置Convention插件...
Struts2 Convention零配置... 暂无评价 5页 1财富值 struts2插件convention-... Struts2采用convention-plugin实现零配置Struts2采用convention-plugin实现零配置...
Struts2使用Convention_插件用法_计算机软件及应用_IT/计算机_专业资料。struts2...//struts.apache.org/2.1.6/docs/convention-plugin.html 当然,简单的通过...
版本开始,Convention Plugin 作为替换替换 Codebehind Plugin 来实现 Struts2 的零...安装 使用 Convention 插件,你需要将其 JAR 文件放到你应用的 WEB-INF/lib ...
Struts2 Convention Plugin 中文文档 一) 中文文档(一 Introduction 从 struts2....查看需要修改的变化和小提示 如果你想在你系统中结合 Convention 插件使用 REST...
Struts2采用convention-plugin实现零配置_IT/计算机_专业资料。Struts的注解方式...跟着潮流走吧, 看看该怎样来搞定 convention-plugin。 使用 Convention 插件, 你...
struts2 采用 convention-plugin 实现零配置最近开始关注 struts2 的新特性,从...跟着潮流走吧, 看看该怎样来搞定 convention-plugin。 使用 Convention 插件, 你...
Struts2 Convention Plugin 中文文档 Introduction 从 struts2.1 版本开始,...安装 使用 Convention 插件, 你需要将其 JAR 文件放到你应用的 WEB-INF/lib ...
热门文档