1、下面這個類應該和Listener相關,直接配置到web.xml中。
org.springframework.web.context.ContextLoaderListener
這個類是從Servlet直接擴展而來的。
它的父類ServletContextListener直接來自servlet-api.jar,它實現了一個標記接口(這個接口僅僅是標記,沒有任何方法)EventListener。
EventLister標記接口是JDK的基礎接口,所有的事件接口必須繼承該接口,包括AWT,weka....
2、將Struts和Spring結合起來,有多種方法。
org.springframework.web.context.ContextLoaderListener
這個類是從Servlet直接擴展而來的。
它的父類ServletContextListener直接來自servlet-api.jar,它實現了一個標記接口(這個接口僅僅是標記,沒有任何方法)EventListener。
EventLister標記接口是JDK的基礎接口,所有的事件接口必須繼承該接口,包括AWT,weka....
2、將Struts和Spring結合起來,有多種方法。