读书人

struts2跟webx参数注入比较

发布时间: 2012-06-27 14:20:09 作者: rapoo

struts2和webx参数注入比较


struts2
使用ognl
通过setter注入参数,Action非单例
有安全漏洞,如何保护Action中的Serice不被参数注入?


webx3
使用 Spring PropertyEditor
通过annocation注入,Action保持单例
没有安全漏洞,但注入比较麻烦。

读书人网 >Web前端

热点推荐