springboot中使用jackson容易引起的报错

时间:2024-11-14 17:47:15
: Unable to start web server; nested exception is : Unable to start embedded Tomcat
    at (:155) ~[spring-boot-2.0.:2.0.]
    at (:544) ~[spring-context-5.0.:5.0.]
    at (:140) ~[spring-boot-2.0.:2.0.]
    at (:762) [spring-boot-2.0.:2.0.]
    at (:398) [spring-boot-2.0.:2.0.]
    at (:330) [spring-boot-2.0.:2.0.]
    at (:1258) [spring-boot-2.0.:2.0.]
    at (:1246) [spring-boot-2.0.:2.0.]
    at (:10) [classes/:na]
Caused by: : Unable to start embedded Tomcat
    at (:126) ~[spring-boot-2.0.:2.0.]
    at .<init>(:86) ~[spring-boot-2.0.:2.0.]
    at (:413) ~[spring-boot-2.0.:2.0.]
    at (:174) ~[spring-boot-2.0.:2.0.]
    at (:179) ~[spring-boot-2.0.:2.0.]
    at (:152) ~[spring-boot-2.0.:2.0.]
    ... 8 common frames omitted
Caused by: : Error creating bean with name 'httpPutFormContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/]: Bean instantiation via factory method failed; nested exception is : Failed to instantiate []: Factory method 'httpPutFormContentFilter' threw exception; nested exception is : Could not initialize class
    at (:590) ~[spring-beans-5.0.:5.0.]
    at (:1247) ~[spring-beans-5.0.:5.0.]
    at (:1096) ~[spring-beans-5.0.:5.0.]
    at (:535) ~[spring-beans-5.0.:5.0.]
    at (:495) ~[spring-beans-5.0.:5.0.]
    at $doGetBean$0(:317) ~[spring-beans-5.0.:5.0.]
    at (:222) ~[spring-beans-5.0.:5.0.]
    at (:315) ~[spring-beans-5.0.:5.0.]
    at (:204) ~[spring-beans-5.0.:5.0.]
    at (:226) ~[spring-boot-2.0.:2.0.]
    at (:182) ~[spring-boot-2.0.:2.0.]
    at (:177) ~[spring-boot-2.0.:2.0.]
    at (:159) ~[spring-boot-2.0.:2.0.]
    at .<init>(:81) ~[spring-boot-2.0.:2.0.]
    at (:250) ~[spring-boot-2.0.:2.0.]
    at (:237) ~[spring-boot-2.0.:2.0.]
    at (:54) ~[spring-boot-2.0.:2.0.]
    at (:5245) ~[tomcat-embed-core-8.5.:8.5.32]
    at (:150) ~[tomcat-embed-core-8.5.:8.5.32]
    at $(:1421) ~[tomcat-embed-core-8.5.:8.5.32]
    at $(:1411) ~[tomcat-embed-core-8.5.:8.5.32]
    at (:266) ~[na:1.8.0_161]
    at (:1149) ~[na:1.8.0_161]
    at $(:624) ~[na:1.8.0_161]
    at (:748) ~[na:1.8.0_161]
Caused by: : Failed to instantiate []: Factory method 'httpPutFormContentFilter' threw exception; nested exception is : Could not initialize class
    at (:185) ~[spring-beans-5.0.:5.0.]
    at (:582) ~[spring-beans-5.0.:5.0.]
    ... 24 common frames omitted
Caused by: : Could not initialize class
    at .(:606) ~[spring-web-5.0.:5.0.]
    at .MappingJackson2HttpMessageConverter.<init>(:59) ~[spring-web-5.0.:5.0.]
    at .<init>(:74) ~[spring-web-5.0.:5.0.]
    at .<init>(:64) ~[spring-web-5.0.:5.0.]
    at .<init>(:29) ~[spring-boot-2.0.:2.0.]
    at (:162) ~[spring-boot-autoconfigure-2.0.:2.0.]
    at $$EnhancerBySpringCGLIB$$$httpPutFormContentFilter$1(<generated>) ~[spring-boot-autoconfigure-2.0.:2.0.]
    at $$EnhancerBySpringCGLIB$$6e4275d4$$FastClassBySpringCGLIB$$(<generated>) ~[spring-boot-autoconfigure-2.0.:2.0.]
    at (:228) ~[spring-core-5.0.:5.0.]
    at $(:361) ~[spring-context-5.0.:5.0.]
    at $$EnhancerBySpringCGLIB$$(<generated>) ~[spring-boot-autoconfigure-2.0.:2.0.]
    at .invoke0(Native Method) ~[na:1.8.0_161]
    at (:62) ~[na:1.8.0_161]
    at (:43) ~[na:1.8.0_161]
    at (:498) ~[na:1.8.0_161]
    at (:154) ~[spring-beans-5.0.:5.0.]
    ... 25 common frames omitted