常见的 开源 MVC 框架有一下几种
JSP+Servlet | struts1 | Spring MVC | structs2+freemarker | struts2, ognl, 值栈
从性能比较: JSP+Servlet > struts1 > Spring MVC > structs2+freemarker >> struts2, ognl, 值栈
从开发效率比较: JSP+Servlet < struts1 < Spring MVC < structs2+freemarker < struts2, ognl, 值栈
其中 SpringMVC 和 struts2+fremmarker 的开发效率相差不大.
struts2 的性能低的原因是 ONGL 和值栈 造成的. 所以在开发并发量高的网站是 建议使用 freemarker 进行显示,
而不是使用OGNL 和值栈, 是其中的一种 性能提高的 方法.