Could not initialize class com.fasterxml.jackson.databind.ObjectMapper

 部署到docker,报错如下:

2020-06-15 23:22:21.524   --- [           main]  : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$e66720] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
 
  .   ____          _            __ _ _ 
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \ 
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ 
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) ) 
  '  |____| .__|_| |_|_| |_\__, | / / / / 
 =========|_|==============|___/=/_/_/_/ 
       (v2.1.1.RELEASE) 
 
2020-06-15 23:22:21.827   --- [           main]  : The following profiles are active: docker 
2020-06-15 23:22:22.741   --- [           main]  : Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format. 
2020-06-15 23:22:23.012   --- [           main]  : Multiple Spring Data modules found, entering strict repository configuration mode! 
2020-06-15 23:22:23.016   --- [           main]  : Bootstrapping Spring Data repositories in DEFAULT mode. 
2020-06-15 23:22:23.102   --- [           main]  : Finished Spring Data repository scanning in 67ms. Found 0 repository interfaces. 
2020-06-15 23:22:23.209   --- [           main]  : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format. 
2020-06-15 23:22:23.516   --- [           main]  : BeanFactory id=a8445dd0-725f-3c26-955a-a4a0d1287fd6 
2020-06-15 23:22:23.707   --- [           main]  : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$e66720] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 
2020-06-15 23:22:24.101   --- [           main]  : Tomcat initialized with port(s): 32009 (http) 
2020-06-15 23:22:24.276   --- [           main]  : Starting service [Tomcat] 
2020-06-15 23:22:24.276   --- [           main]  : Starting Servlet Engine: Apache Tomcat/9.0.13 
2020-06-15 23:22:24.292   --- [           main]  : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib] 
2020-06-15 23:22:24.381   --- [           main]  : Initializing Spring embedded WebApplicationContext 
2020-06-15 23:22:24.382   --- [           main]  : Root WebApplicationContext: initialization completed in 2536 ms 
2020-06-15 23:22:25.448   --- [           main]  : Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'formContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedFormContentFilter]: Factory method 'formContentFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.ObjectMapper 
2020-06-15 23:22:25.476   --- [           main]  : Stopping service [Tomcat] 
2020-06-15 23:22:25.480   --- [           main]  : The web application [ROOT] appears to have started a thread named [spring.cloud.inetutils] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: 
 sun.misc.Unsafe.park(Native Method) 
 java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) 
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) 
 java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442) 
 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
 java.lang.Thread.run(Thread.java:748) 
2020-06-15 23:22:25.481   --- [           main]  : The web application [ROOT] appears to have started a thread named [lettuce-eventExecutorLoop-1-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: 
 sun.misc.Unsafe.park(Native Method) 
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) 
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) 
 java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) 
 io.netty.util.concurrent.SingleThreadEventExecutor.takeTask(SingleThreadEventExecutor.java:251) 
 io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:64) 
 io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897) 
 io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) 
 java.lang.Thread.run(Thread.java:748) 
2020-06-15 23:22:25.482   --- [           main]  : The web application [ROOT] appears to have started a thread named [logback-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: 
 sun.misc.Unsafe.park(Native Method) 
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) 
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) 
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) 
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) 
 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
 java.lang.Thread.run(Thread.java:748) 
2020-06-15 23:22:25.482   --- [           main]  : The web application [ROOT] appears to have started a thread named [com.alibaba.nacos.naming.client.listener] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: 
 sun.misc.Unsafe.park(Native Method) 
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) 
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) 
 java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) 
 com.alibaba.nacos.client.naming.core.EventDispatcher$Notifier.run(EventDispatcher.java:114) 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
 java.lang.Thread.run(Thread.java:748) 
2020-06-15 23:22:25.483   --- [           main]  : The web application [ROOT] appears to have started a thread named [com.alibaba.nacos.naming.failover] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: 
 sun.misc.Unsafe.park(Native Method) 
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) 
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) 
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) 
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) 
 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
 java.lang.Thread.run(Thread.java:748) 
2020-06-15 23:22:25.483   --- [           main]  : The web application [ROOT] appears to have started a thread named [com.alibaba.nacos.naming.push.receiver] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: 
 java.net.PlainDatagramSocketImpl.receive0(Native Method) 
 java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143) 
 java.net.DatagramSocket.receive(DatagramSocket.java:812) 
 com.alibaba.nacos.client.naming.core.PushReceiver.run(PushReceiver.java:73) 
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
 java.util.concurrent.FutureTask.run(FutureTask.java:266) 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) 
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
 java.lang.Thread.run(Thread.java:748) 
2020-06-15 23:22:25.487   --- [           main]  : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 
2020-06-15 23:22:25.522   --- [           main]  : 
 
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 
2020-06-15 23:22:25.529   --- [           main]  : Application run failed 
 
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:157) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:540) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at com.inspur.Application.main(Application.java:25) [classes!/:1.0-SNAPSHOT] 
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_222] 
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_222] 
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_222] 
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_222] 
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [collect-parse.jar:1.0-SNAPSHOT] 
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [collect-parse.jar:1.0-SNAPSHOT] 
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [collect-parse.jar:1.0-SNAPSHOT] 
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [collect-parse.jar:1.0-SNAPSHOT] 
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 
	at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:125) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:86) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:414) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:174) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	... 16 common frames omitted 
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'formContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedFormContentFilter]: Factory method 'formContentFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.ObjectMapper 
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:456) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1288) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:235) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:193) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:188) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:170) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:89) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:261) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:234) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:54) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5098) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1432) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1422) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_222] 
	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) ~[na:1.8.0_222] 
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1432) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1422) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_222] 
	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) ~[na:1.8.0_222] 
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:801) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.apache.catalina.startup.Tomcat.start(Tomcat.java:372) ~[tomcat-embed-core-9.0.13.jar!/:9.0.13] 
	at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:106) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	... 21 common frames omitted 
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.filter.OrderedFormContentFilter]: Factory method 'formContentFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.ObjectMapper 
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	... 62 common frames omitted 
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jackson.databind.ObjectMapper 
	at org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.build(Jackson2ObjectMapperBuilder.java:621) ~[spring-web-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.(MappingJackson2HttpMessageConverter.java:59) ~[spring-web-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter.(AllEncompassingFormHttpMessageConverter.java:76) ~[spring-web-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.web.filter.FormContentFilter.(FormContentFilter.java:60) ~[spring-web-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.boot.web.servlet.filter.OrderedFormContentFilter.(OrderedFormContentFilter.java:29) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.formContentFilter(WebMvcAutoConfiguration.java:166) ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$$EnhancerBySpringCGLIB$$190ea29a.CGLIB$formContentFilter$0() ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$$EnhancerBySpringCGLIB$$190ea29a$$FastClassBySpringCGLIB$$8b7e1a7d.invoke() ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$$EnhancerBySpringCGLIB$$190ea29a.formContentFilter() ~[spring-boot-autoconfigure-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] 
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_222] 
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_222] 
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_222] 
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_222] 
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] 
	... 63 common frames omitted 
 

解决方法: jar版本问题,fasterxml有些版本存在漏洞,建议换成下面版本,可以原封不动的copy到个人项目的pom文件。


            com.fasterxml.jackson.core
            jackson-annotations
            2.9.8
        
        
            com.fasterxml.jackson.core
            jackson-core
            2.9.8
        
        
            com.fasterxml.jackson.core
            jackson-databind
            2.9.8
            
                
                    com.fasterxml.jackson.core
                    jackson-annotations
                
            

你可能感兴趣的:(Could not initialize class com.fasterxml.jackson.databind.ObjectMapper)