补充一点    加了<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>   
也会报错  说找不到 spring配置 文件 恼火的是 他居然去 web-inf 这个文件夹下找 
好吧 我吧配置文件复制到 web-inf 下 这次 spring造了两次  然后访问页面还是报错  我在网上搜了很久了 实在没办法

解决方案 »

  1.   

    <init-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>classpath*:applicationContext.xml</param-value>
            </init-param>
    这个配错了吧。应该为:
    <init-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>classpath:*applicationContext.xml</param-value>
            </init-param>
      

  2.   

    还是配置文件没写对No WebApplicationContext found: no ContextLoaderListener registered说明你的web容器就没起来web.xml有问题了