maven的javaWeb项目启动找不到Spring ContextLoaderListener的解决办法

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)

    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)

    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)

    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)

    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4888)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)

    at java.util.concurrent.FutureTask.run(FutureTask.java:262)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    at java.lang.Thread.run(Thread.java:745)
 

 

maven的javaWeb项目启动找不到Spring ContextLoaderListener的解决办法_第1张图片

你可能感兴趣的:(java,技术,Spring)