问题描述
最近在学springmvc时刚配置完环境后,一运行就弹出以下的异常,求助大神:java.lang.ClassNotFoundException:org.springframework.web.multipart.MultipartResolveratorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)atjava.lang.Class.getDeclaredFields0(NativeMethod)atjava.lang.Class.privateGetDeclaredFields(Class.java:2291)atjava.lang.Class.getDeclaredFields(Class.java:1743)atorg.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:134)atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1119)atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4371)atorg.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1116)atorg.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)atjava.lang.Thread.run(Thread.java:619)
解决方案
解决方案二:
jar的问题吧~应该是少包了!
解决方案三:
缺这个jar包:spring-web.jar