<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         id="WebApp_ID" version="3.0">
  <display-name>bhz-sys-service</display-name>

  <context-param>
    <param-name>webAppRootKey</param-name>
    <param-value>qy-token-service.root</param-value>
  </context-param>
  <context-param>
    <param-name>log4jConfigLocation</param-name>
    <param-value>/WEB-INF/classes/log4j.properties</param-value>
  </context-param>
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
      classpath*:dubbo-provider.xml
      classpath*:spring-mvc.xml	
    </param-value>
  </context-param>
  
  <!-- 配置dubbox remoting -->
  <!--this listener must be defined before the spring listener-->
  <listener>
      <listener-class>com.alibaba.dubbo.remoting.http.servlet.BootstrapListener</listener-class>
  </listener> 
  <listener>
    <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  
  <!-- 配置dubbox -->	 
  <servlet>
  	<servlet-name>dubboxDispatcher</servlet-name>
  	<servlet-class>com.alibaba.dubbo.remoting.http.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>2</load-on-startup>
	</servlet>
  <servlet-mapping>
  	<servlet-name>dubboxDispatcher</servlet-name>
  	<url-pattern>/dubboprovider/*</url-pattern>
  </servlet-mapping>
  
</web-app>