SpringMVC实现Action的两种方式以及与Struts2的区别

4、程序员写的Action可采用哪两种方式?

第一、实现Controller接口
第二、继承自AbstractCommandController接口

5、springmvc与struts2的区别?

第一、springmvc入口servlet,struts2入口为filter
第二、springmvc-action单例,struts2-action多例
第三、springmvc以方法参数形式收集值,struts2以类形式收集值
第四、springmvc的结果先绑定于ModelAndView中,再放入request域对象中,
struts2的结果先绑定到ValueStack中,再放入request域对象中
第五、springmvc开发运行速度相对较快

原文地址:https://www.cnblogs.com/1020182600HENG/p/6891635.html