ERRORcheck whether you have multiple ContextLoader* definitions in your web.xml!

ERROR:check whether you have multiple ContextLoader* definitions in your web.xml!

 

 

 找到了错误的原因了!!!!!!!!!!

一般根据报错提示顺藤摸瓜 就能解决问题!!

 

在web.xml里面~~

 

  <listener>
    <listener-class>
      org.springframework.web.context.ContextLoaderListener
    </listener-class>
  </listener>
 
     <servlet>
        <servlet-name>SpringContextServlet</servlet-name>
        <servlet-class>
            org.springframework.web.context.ContextLoaderServlet
        </servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
<!-- 两个一样的ContextLoaderListener !!!???我要搞清楚-->
 

 

 

休息一下稍后继续呀~~下一集

ContextLoaderListener  VS.  ContextLoaderServlet

你可能感兴趣的:(Web,xml,servlet)