(1)使用Struts插件
在struts-config.xml中




(2)在web.xml中使用Listener









(2)在web.xml中使用Servlet
<servlet-name>springInitServlet</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
<load-on-startup>0</load-on-startup>