Struts2中配置的action在被spring注入时容易忽略的问题
[size=medium]struts.xml中配置的action,参数默认都是通过spring的autoWire注入的,默认是byName。
如果注入的参数通过byName注入失败,比如需要注入的参数为userService,而spring中userService的bean不是参数userService的Interface类型。这时[color=red]不会报错[/color],不知道是不...
原创
2012-11-01 18:12:26 ·
97 阅读 ·
0 评论