51,395
社区成员




[2021-09-29 11:16:51:188-main] [INFO] - org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:87) - Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration$$EnhancerBySpringCGLIB$$c65cff1a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
[2021-09-29 11:16:52:157-main] [INFO] - org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:87) - Initializing ExecutorService 'taskExecutor'
[2021-09-29 11:16:53:108-main] [INFO] - org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:87) - Tomcat initialized with port(s): 8080 (http)
[2021-09-29 11:16:53:293-localhost-startStop-1] [INFO] - org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:87) - Root WebApplicationContext: initialization completed in 7988 ms
[2021-09-29 11:16:56:220-localhost-startStop-1] [ERROR] - org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:87) - Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'httpPutFormContentFilter' 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.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.fasterxml.jackson.datatype.jsr310.JavaTimeModule]: Constructor threw exception; nested exception is java.lang.IllegalAccessError: tried to access method com.fasterxml.jackson.databind.ser.std.StdSerializer.<init>(Ljava/lang/Class;)V from class com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
[2021-09-29 11:16:56:296-main] [WARN] - org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:87) - 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
[2021-09-29 11:16:56:298-main] [INFO] - org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:87) - Shutting down ExecutorService 'taskExecutor'
已解决,解决方案如下:费老鼻子劲儿了= =!
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
tried to access method com.fasterxml.jackson.databind.ser.std.StdSerializer.(Ljava/lang/Class;
别从网上找pom,从spring initializr 去创建project,选择jdk8,基本就不会出现这些问题