
struts
sanshou
这个作者很懒,什么都没留下…
展开
-
struts2 annotation
从struts2.1开始,struts2不再推荐使用Codebehind作为零配置插件,而是改为使用Convention插件来支持零配置,和Codebehind相比,Convention插件更彻底,该插件完全抛弃配置信息,不仅不需要是使用struts.xml文件进行配置,甚至不需要使用Annotation进行配置,而是由struts2根据约定自动配置。 如何使用Convention 1.转载 2013-05-16 10:19:48 · 454 阅读 · 0 评论 -
struts2.1-annotation
Struts2.1 Annotation 注解配置也叫ZeroConfiguration(零配置),它省去了写xml文件的麻烦,可以直接在类叫进行配置,不用在java文件和xml文件中来回切换。 annotation所需要的包,在Struts2.1中是struts2-codebehind-plugin.jar 这个包 第一步在web.xml里面写上这样的配置转载 2013-05-16 11:37:15 · 508 阅读 · 0 评论 -
sturts2.2-annotation
从struts2.1开始,struts2不再推荐使用Codebehind作为零配置插件,而是改为使用Convention插件来支持零配置,和Codebehind相比,Convention插件更彻底,该插件完全抛弃配置信息,不仅不需要是使用struts.xml文件进行配置,甚至不需要使用Annotation进行配置,而是由struts2根据约定自动配置。 将[struts2-conventi转载 2013-05-16 12:04:55 · 603 阅读 · 0 评论