当我将项目从spring boot 1.5.16升级到spring boot 2.0.5时,我开始出现以下错误

14:54:29.752 ERROR org.springframework.boot.web.embedded.tomcat.TomcatStarter-62:启动Tomcat上下文时出错 . 例外:org.springframework.beans.factory.BeanCreationException . 消息:在类路径资源[org / springframework / boot / autoconfigure / web / servlet / WebMvcAutoConfiguration.class]中定义名称为'httpPutFormContentFilter'的bean创建时出错:通过工厂方法进行Bean实例化失败;嵌套异常是org.springframework.beans.BeanInstantiationException:无法实例化[org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter]:工厂方法'httpPutFormContentFilter'抛出异常;嵌套异常是java.lang.NoClassDefFoundError:无法初始化类com.fasterxml.jackson.databind.ObjectMapper Oct 03,20188 2:54:29 PM org.apache.catalina.core.StandardService stopInternal INFO:停止服务[Tomcat] 14 :54:29.794 WARN org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext-558:上下文初始化期间遇到异常 - 取消刷新尝试:org.springframework.context.ApplicationContextException:无法启动Web服务器;嵌套异常是org.springframework.boot.web.server.WebServerException:无法启动嵌入式Tomcat 14:54:29.810 INFO org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener-101:启动ApplicationContext时出错 . 要显示条件报告,请在启用“debug”的情况下重新运行应用程序 . 14:54:29.819错误org.springframework.boot.SpringApplication-863:应用程序运行失败org.springframework.context.ApplicationContextException:无法启动Web服务器;嵌套异常是org.springframework.boot.web.server.WebServerException:无法在org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:155)〜[spring-boot-2.0]启动嵌入式Tomcat .5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544)〜[spring-context-5.0.9.RELEASE.jar:5.0.9 . 发布org.springframework上的org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)~ [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] . boot.SpringApplication.refresh(SpringApplication.java:780)[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412)[spring -boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.SpringApplication.run(SpringApplication.java:333)[spring-boot-2.0.5.REL EASE.jar:2.0.5.RELEASE] org.springframework上的org.springframework.boot.SpringApplication.run(SpringApplication.java:1277)[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] com.civalue.Application.main(Application.java:23)中的.boot.SpringApplication.run(SpringApplication.java:1265)[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] [classes / :?]引起:org.springframework.boot.web.server.WebServerException:无法在org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126)启动嵌入式Tomcat~ [spring- boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.web.embedded.tomcat.TomcatWebServer . (TomcatWebServer.java:86)〜[spring-boot-2.0.5.RELEASE . jar:2.0.5.RELEASE] at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:413)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE ] org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(T omcatServletWebServerFactory.java:174)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:179)〜 [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:152)〜[spring-boot-2.0 . 5.RELEASE.jar:2.0.5.RELEASE] ... 8更多引起:org.springframework.beans.factory.BeanCreationException:创建名为'httpPutFormContentFilter'的bean时出错类路径资源[org / springframework / boot / autoconfigure / web / servlet / WebMvcAutoConfiguration.class]:通过工厂方法的Bean实例化失败;嵌套异常是org.springframework.beans.BeanInstantiationException:无法实例化[org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter]:工厂方法'httpPutFormContentFilter'抛出异常;嵌套异常是java.lang.NoClassDefFoundError:无法在org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:590)〜[spring-beans-5.0]初始化类com.fasterxml.jackson.databind.ObjectMapper .9.RELEASE.jar:5.0.9.RELEASE]在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247)〜[spring-beans-5.0.9.RELEASE.jar:5.0 . 9.RELEASE] org.springframework上的org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] . 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean上的beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] (AbstractAutowireCapableBeanFac tory.java:495)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] org.springframework.beans.factory.support.AbstractBeanFactory.lambda $ doGetBean $ 0(AbstractBeanFactory.java:317) 〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)~ [spring-beans-5.0.9 .rELEASE.jar:5.0.9.RELEASE]在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9 . 发布org.springframework.boot上的org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] . org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializ)中的web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:226)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] erBeans.java:182)~ [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:177)〜[spring -boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:159)〜[spring-boot-2.0.5.RELEASE . jar:2.0.5.RELEASE] org.springframework.boot.web.servlet.ServletContextInitializerBeans . (ServletContextInitializerBeans.java:81)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] at org org.springframework.boot.web中的.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:250)~ [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] . org.springframew上的servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:237)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] org.apache上的ork.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:54)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] .standardContext .startInternal(StandardContext.java:5245)〜[tomcat-embed-core-8.5.34.jar:8.5.34]在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)〜[tomcat- embed-core-8.5.34.jar:8.5.34] at org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1420)~ [tomcat-embed-core-8.5.34.jar:8.5 .34]在java.util.concurrent.FutureTask的org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1410)〜[tomcat-embed-core-8.5.34.jar:8.5.34] .run $$$捕获(FutureTask.java:266)〜[?:1.8.0_152] java.util.concurrent.FutureTask.run(FutureTask.java)〜[?:1.8.0_152] java.util.concurrent .ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)〜[?:1.8.0_152] java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)〜[?:1.8.0_152] at java.lang .Thread.run(Thread.java:748)〜[?:1 .8.0_152]引起:org.springframework.beans.BeanInstantiationException:无法实例化[org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter]:工厂方法'httpPutFormContentFilter'抛出异常;嵌套异常是java.lang.NoClassDefFoundError:无法在org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)初始化类com.fasterxml.jackson.databind.ObjectMapper~ [spring-beans-5.0 .9.RELEASE.jar:5.0.9.RELEASE]在org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:582)〜[spring-beans-5.0.9.RELEASE.jar:5.0 . 9.RELEASE] org.springframework上的org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247)~ [spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] . 在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean上的beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] (AbstractAutowireCapableBeanFactory.java:535 )〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)〜[spring-beans-5.0 . 9.RELEASE.jar:5.0.9.RELEASE]在org.springframework.beans.factory.support.AbstractBeanFactory.lambda $ doGetBean $ 0(AbstractBeanFactory.java:317)〜[spring-beans-5.0.9.RELEASE.jar: 5.0.9.RELEASE]在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org . orframe.springframework.beans.factory.support.AbstractBeanFactory上的springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] .getBean(AbstractBeanFactory.java:204)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.ja va:226)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:182)〜[spring-boot -2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:177)〜[spring-boot-2.0.5.RELEASE.jar: 2.0.5.RELEASE]在组织的org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:159)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] . 在org.springframework.boot.web.servlet.context上的springframework.boot.web.servlet.ServletContextInitializerBeans . (ServletContextInitializerBeans.java:81)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] . org.springframework.boot.web.servle中的ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:250)~ [spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup中的t.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:237)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] (TomcatStarter.java:54)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5245)〜[tomcat- embed-core-8.5.34.jar:8.5.34] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)〜[tomcat-embed-core-8.5.34.jar:8.5.34 ] org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1420)〜[tomcat-embed-core-8.5.34.jar:8.5.34] org.apache.catalina.core.ContainerBase $ StartCild.call(ContainerBase.java:1410)〜[tomcat-embed-core-8.5.34.jar:8.5.34] java.util.concurrent.FutureTask.run $$$ capture(FutureTask.java:266) 〜[?:1.8.0_152] java.util.concurrent.FutureTask.run(FutureTask.java)〜[?:1.8.0_152] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor) .java:1149)〜[?:1.8.0_152] java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)〜[?:1.8.0_152] at java.lang.Thread.run(Thread .java:748)〜[?:1.8.0_152]引起:java.lang.NoClassDefFoundError:无法初始化类com.fasterxml.jackson.databind.ObjectMapper atorg.springframework.http.converter.json.Jackson2ObjectMapperBuilder.build(Jackson2ObjectMapperBuilder.java:606)〜[spring-web-5.0.9.RELEASE.jar:5.0.9.RELEASE] org.springframework.http.converter.json .MappingJackson2HttpMessageConverter . (MappingJackson2HttpMessageConverter.java:59)〜[spring-web-5.0.9.RELEASE.jar:5.0.9.RELEASE] org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter . (AllEncompassingFormHttpMessageConverter.java:74) 〜[spring-web-5.0.9.RELEASE.jar:5.0.9.RELEASE]在org.springframework.web.filter.HttpPutFormContentFilter . (HttpPutFormContentFilter.java:64)〜[spring-web-5.0.9.RELEASE . jar:5.0.9.RELEASE] at org.springframework.boot.web.servlet.filter.OrderedHttpPutFormContentFilter . (OrderedHttpPutFormContentFilter.java:29)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.httpPutFormContentFilter(WebMvcAutoConfiguration.java:162)〜[spring-boot-autoconfigure-2.0.5.RELEASE.ja r:2.0.5.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration $$ EnhancerBySpringCGLIB $$ fa913c1d.CGLIB $ httpPutFormContentFilter $ 1()〜[spring-boot-autoconfigure-2.0.5.RELEASE.jar :2.0.5.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration $$ EnhancerBySpringCGLIB $$ fa913c1d $$ FastClassBySpringCGLIB $$ 5d804c1d.invoke()〜[spring-boot-autoconfigure-2.0.5.RELEASE .jar:2.0.5.RELEASE]在org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)〜[spring-core-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org org.springframework.boot.autoconfigure.web中的.springframework.context.annotation.ConfigurationClassEnhancer $ BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:365)〜[spring-context-5.0.9.RELEASE.jar:5.0.9.RELEASE] . servlet.WebMvcAutoConfiguration $$ EnhancerBySpringCGLIB $$ fa913c1d.httpPutFormContentFilter()〜[spring-boot-autoconfigure-2.0.5.RELEASE.jar:2.0.5.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke 0(本机方法)〜[?:1.8.0_152] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)〜[?:1.8.0_152] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43 )〜[?:1.8.0_152]在java.lang.reflect.Method.invoke(Method.java:498)〜[?:1.8.0_152] org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy) .java:154)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]在org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:582)〜[spring- bean-5.0.9.RELEASE.jar:5.0.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1247)~ [spring-beans-5.0.9.RELEASE.jar :5.0.9.RELEASE]在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1096)〜[spring -beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)〜[spring-beans-5.0.9.RELEASE . jar:5.0.9.RELEASE]在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] at at在org.springframework.beans上的org.springframework.beans.factory.support.AbstractBeanFactory.lambda $ doGetBean $ 0(AbstractBeanFactory.java:317)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] . or.s.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory)中的factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE] .java:315)〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204 )〜[spring-beans-5.0.9.RELEASE.jar:5.0.9.RELEASE]在org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:226)〜[spring-boot-2.0 . 5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:182)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5 .RELEASE] atorg.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:177)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] org.springframework.boot.web.servlet org.springframework.boot.web.servlet.ServletContextInitializerBeans中的.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:159)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE . (ServletContextInitializerBeans.java:81 )〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:250)〜[spring-boot- 2.0.5.RELEASE.jar:2.0.5.RELEASE]在org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:237)〜[spring-boot-2.0.5.RELEASE.jar :2.0.5.RELEASE]在org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.j ava:54)〜[spring-boot-2.0.5.RELEASE.jar:2.0.5.RELEASE] org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5245)〜[tomcat-embed-core -8.5.34.jar:8.5.34] org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)〜[tomcat-embed-core-8.5.34.jar:8.5.34] at org .apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1420)〜[tomcat-embed-core-8.5.34.jar:8.5.34] at org.apache.catalina.core.ContainerBase $ StartChild . 调用(ContainerBase.java:1410)〜[tomcat-embed-core-8.5.34.jar:8.5.34] java.util.concurrent.FutureTask.run $$$ capture(FutureTask.java:266)〜[? :1.8.0_152]在java.util.concurrent.FutureTask.run(FutureTask.java)〜[?:1.8.0_152] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)〜[?:1.8 .0_152] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)~ [?:1.8.0_152] at java.lang.Thread.run(Thread.java:748)~ [?:1.8 .0_152]