ITeye博客

Struts2

共 1 篇文章

struts2与Spring3集成中Action的自动装配不起作用解决方法

今天碰到一个Spring的自动装配问题,关于Struts2和Spring3.0的集成。在网上搜到一篇文章: http://aeqopq231.blog.stcn.com/archives/2012/407199.html , 该文章指出使用autodect来解决,实际上这是错误的。autodect代表在bean寻找的方式上使用type或者 constructor的方式来查找bean,因此不是这个问题。经过我的调试,我发现问题出现在beans的头声明上: 我原来的声明方式是: <beans xmlns=" http://www.springframework.org/schema/beans …

2012-04-12 18:25 · Struts2 · Spring