Struts2 + Spring Action注入问题探讨
Struts2的Action需要注入Servcie时是否交给了Spring管理。 答案很难讲通常在Action中配置@Component @Scope(“prototype”) 但是后来发现不配置也可。Action中的setter们不加@Resource 也可以(只要名子跟spring中Bean的名字一样就能被注入)Action具体创建者应该是那个plugin插件,创建时候
原创
2012-06-26 14:48:09 ·
376 阅读 ·
0 评论