java web 之 struts2 与 sping 集成
摘要:
struts2 与 spring 集成,只需要 struts2-spring-plugin-xxx.jar 即可;这个 struts2 官方文档中已经说明:To enable Spring integration, simply include struts2-spring-plugin-x-x-x.jar in your application.可是为什么呢?打开 plugin 的 jar 包发现有个 struts-plugin.xml 文件;这就是 struts2 和 sping 集成只需有这个jar包就行的原因了。具体做法:1. web.xml 配置监听(用spring配置各个bean对 阅读全文
posted @ 2013-01-25 11:40 sin7 阅读(180) 评论(0) 推荐(0)