1.若你是用的是最新的 myeclipse 就不用再导入struts-spring-plugin-jar了,不然会冲突。
2.记得在web.xml里面加上
org.springframework.web.context.ContextLoaderListener contextConfigLocation classpath:beans.xml
3.在配置struts.xml时有下面几种配置方法.(假设form表单提交是是提交到 user1.action)即
1.若你是用的是最新的 myeclipse 就不用再导入struts-spring-plugin-jar了,不然会冲突。
2.记得在web.xml里面加上
org.springframework.web.context.ContextLoaderListener contextConfigLocation classpath:beans.xml