
struts
刘承c
这个作者很懒,什么都没留下…
展开
-
struts中的constant
struts.properties文件的内容均可在struts.xml中以加载。 例如: struts.xml文件中配置: struts> constant name="struts.devMode" value="true" /> struts> 在 struts.properties中配置 struts.devMode =true s转载 2015-08-18 10:18:44 · 710 阅读 · 0 评论 -
Struts2的Annotation使用
从struts2.1开始,struts2不再推荐使用Codebehind作为零配置插件,而是改为使用Convention插件来支持零配置,和Codebehind相比,Convention插件更彻底,该插件完全抛弃配置信息,不仅不需要是使用struts.xml文件进行配置,甚至不需要使用Annotation进行配置,而是由struts2根据约定自动配置。 如何使用Convention 1.转载 2015-08-20 15:25:42 · 650 阅读 · 0 评论