struts spring hibernate urlrewrite dwr配置顺序
<?xml version="1.0" encoding="UTF-8"?><web-app version="2.3" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_3.xsd"> <!-- 伪静态 --> <!-- 伪静态配置一定要放在最上面,要第一个加载 --> <filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class> org.tuckey.web.filters.urlrewrite.UrlRewriteFilter </filter-class> </filter> <filter-mapping> <filter-name>UrlRewriteFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- 伪静态 end--> <!-- DWR2.0配置 --> <servlet> <servlet-name>dwr-invoker</servlet-name> <display-name>DWR Servlet</display-name> <!-- 1.0的配置 <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class> --> <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>logLevel</param-name> <param-value>WARN</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr-invoker</servlet-name> <!--用于拦截 http://localhost:8080/dwr--> <url-pattern>/dwr/*</url-pattern> </servlet-mapping><!-- END DWR配置 --><!-- struts2配置 --><filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern><dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping><!-- struts2配置 end--><!-- spring配置 --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:spring/applicationContext-index.xml, classpath:spring/DWR-applicationContext.xml, classpath:applicationContext.xml </param-value> </context-param> <!-- spring配置 end--> <welcome-file-list> <welcome-file>/index.jsp</welcome-file> </welcome-file-list></web-app>?