spring調度
1、導入入struts+spring整合需要的jar文件(struts2-spring-plugin-2.3.1.2)
2、配置web.xml
<!-- 配置struts -->
<!-- struts.xml如在src目錄下不用配置 -->
<!-- 配置spring,如果spring配置文件在web-inf下可以只要listener-->
配置歡迎頁面
3、配置 spring文件
4、配置struts文件
如果有@Controller("stuaction") 類名可以直接寫stuaction