文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > struts2插件convention-plugin
侵权投诉

struts2插件convention-plugin

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 规范的链接地址(即:使用 my­action 来替代 MyAction) 基于注解的 Action名

基于注解的拦截机(Interceptor) 基于注解的命名空间(Nameespace) 基于注解的 XWork 包

默认 action 以及默认的结果(比如:/products 将会尝试寻找 

com.example.actions.Products 或 com.example.actions.products.Index 进行处理)

第1页

你可能喜欢

热门文档

相关文档

  • struts2采用convention-plugin实现零配置

    struts2采用convention-plugin实现零配置_IT/计算机_专业资料。struts2采用...method1.action 时,返回 www.baidu.com 标签: Struts convention 插件 ...

  • Struts2的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中的配置文件详解

    struts2-convention-plugin-2.1.8.1.jar中的配置文件详解_IT/计算机_专业....convention.result.path" value="/WEB-INF/content/"/> 设置Convention插件...

  • Struts2采用convention-plugin实现零配置

    Struts2 Convention零配置... 暂无评价 5页 1财富值 struts2插件convention-... Struts2采用convention-plugin实现零配置Struts2采用convention-plugin实现零配置...

  • Struts2使用Convention_插件用法

    Struts2使用Convention_插件用法_计算机软件及应用_IT/计算机_专业资料。struts2...//struts.apache.org/2.1.6/docs/convention-plugin.html 当然,简单的通过...

  • struts2-Convention Plugin

    版本开始,Convention Plugin 作为替换替换 Codebehind Plugin 来实现 Struts2 的零...安装 使用 Convention 插件,你需要将其 JAR 文件放到你应用的 WEB-INF/lib ...

  • Struts2_Convention_Plugin中文文档

    Struts2 Convention Plugin 中文文档 一) 中文文档(一 Introduction 从 struts2....查看需要修改的变化和小提示 如果你想在你系统中结合 Convention 插件使用 REST...

  • Struts2采用convention-plugin实现零配置

    Struts2采用convention-plugin实现零配置_IT/计算机_专业资料。Struts的注解方式...跟着潮流走吧, 看看该怎样来搞定 convention-plugin。 使用 Convention 插件, 你...

  • struts2采用convention-plugin实现零配置

    struts2 采用 convention-plugin 实现零配置最近开始关注 struts2 的新特性,从...跟着潮流走吧, 看看该怎样来搞定 convention-plugin。 使用 Convention 插件, 你...

  • Struts2 Convention Plugin中文文档

    Struts2 Convention Plugin 中文文档 Introduction 从 struts2.1 版本开始,...安装 使用 Convention 插件, 你需要将其 JAR 文件放到你应用的 WEB-INF/lib ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email