首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

struts2跟webx参数注入比较

2012-06-27 
struts2和webx参数注入比较struts2使用ognl通过setter注入参数,Action非单例有安全漏洞,如何保护Action中

struts2和webx参数注入比较


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


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

热点排行