1
回答
springboot启动报错,请大神帮忙看下!
注册华为云得mate10,2.9折抢先购!>>>   
 以下为何出现这错误,怎么处理?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.jackson.JacksonProperties org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration.jacksonProperties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.jackson.CONFIGURATION_PROPERTIES': Could not bind properties to JacksonProperties (prefix=spring.jackson, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors
Field error in object 'spring.jackson' on field 'null': rejected value [fail_on_numbers_as_enums]; codes [typeMismatch.spring.jackson.null,typeMismatch.null,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [spring.jackson.null,null]; arguments []; default message [null]]; default message [Failed to convert property value of type [java.lang.String] to required type [com.fasterxml.jackson.databind.DeserializationFeature] for property 'null'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [com.fasterxml.jackson.databind.DeserializationFeature] for value 'fail_on_numbers_as_enums'; nested exception is java.lang.IllegalArgumentException: No enum constant com.fasterxml.jackson.databind.DeserializationFeature.fail_on_numbers_as_enums]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at com.tairan.cloud.credit.CreditRestfulRunner.main(CreditRestfulRunner.java:19) [classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.jackson.JacksonProperties org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration.jacksonProperties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.jackson.CONFIGURATION_PROPERTIES': Could not bind properties to JacksonProperties (prefix=spring.jackson, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors
Field error in object 'spring.jackson' on field 'null': rejected value [fail_on_numbers_as_enums]; codes [typeMismatch.spring.jackson.null,typeMismatch.null,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [spring.jackson.null,null]; arguments []; default message [null]]; default message [Failed to convert property value of type [java.lang.String] to required type [com.fasterxml.jackson.databind.DeserializationFeature] for property 'null'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [com.fasterxml.jackson.databind.DeserializationFeature] for value 'fail_on_numbers_as_enums'; nested exception is java.lang.IllegalArgumentException: No enum constant com.fasterxml.jackson.databind.DeserializationFeature.fail_on_numbers_as_enums]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
... 17 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.jackson.CONFIGURATION_PROPERTIES': Could not bind properties to JacksonProperties (prefix=spring.jackson, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors
Field error in object 'spring.jackson' on field 'null': rejected value [fail_on_numbers_as_enums]; codes [typeMismatch.spring.jackson.null,typeMismatch.null,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [spring.jackson.null,null]; arguments []; default message [null]]; default message [Failed to convert property value of type [java.lang.String] to required type [com.fasterxml.jackson.databind.DeserializationFeature] for property 'null'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [com.fasterxml.jackson.databind.DeserializationFeature] for value 'fail_on_numbers_as_enums'; nested exception is java.lang.IllegalArgumentException: No enum constant com.fasterxml.jackson.databind.DeserializationFeature.fail_on_numbers_as_enums]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:339) ~[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:289) ~[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
... 19 common frames omitted
Caused by: org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors
Field error in object 'spring.jackson' on field 'null': rejected value [fail_on_numbers_as_enums]; codes [typeMismatch.spring.jackson.null,typeMismatch.null,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [spring.jackson.null,null]; arguments []; default message [null]]; default message [Failed to convert property value of type [java.lang.String] to required type [com.fasterxml.jackson.databind.DeserializationFeature] for property 'null'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [com.fasterxml.jackson.databind.DeserializationFeature] for value 'fail_on_numbers_as_enums'; nested exception is java.lang.IllegalArgumentException: No enum constant com.fasterxml.jackson.databind.DeserializationFeature.fail_on_numbers_as_enums]
at org.springframework.boot.bind.PropertiesConfigurationFactory.validate(PropertiesConfigurationFactory.java:362) ~[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.boot.bind.PropertiesConfigurationFactory.doBindPropertiesToTarget(PropertiesConfigurationFactory.java:271) ~[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.boot.bind.PropertiesConfigurationFactory.bindPropertiesToTarget(PropertiesConfigurationFactory.java:241) ~[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:334) ~[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
... 32 common frames omitted


2016-10-28 23:28:37.376  INFO 13560 --- [           main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/F:/workspace/credit-cloud-parent/credit-thirdparty-restful/target/classes/, file:/D:/apache-tomcat-8.0.32/lib/annotations-api.jar, file:/D:/apache-tomcat-8.0.32/lib/catalina-ant.jar, file:/D:/apache-tomcat-8.0.32/lib/catalina-ha.jar, file:/D:/apache-tomcat-8.0.32/lib/catalina-storeconfig.jar, file:/D:/apache-tomcat-8.0.32/lib/catalina-tribes.jar, file:/D:/apache-tomcat-8.0.32/lib/catalina.jar, file:/D:/apache-tomcat-8.0.32/lib/ecj-4.4.2.jar, file:/D:/apache-tomcat-8.0.32/lib/ecj-4.5.jar, file:/D:/apache-tomcat-8.0.32/lib/el-api.jar, file:/D:/apache-tomcat-8.0.32/lib/jasper-el.jar, file:/D:/apache-tomcat-8.0.32/lib/jasper.jar, file:/D:/apache-tomcat-8.0.32/lib/jsp-api.jar, file:/D:/apache-tomcat-8.0.32/lib/servlet-api.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-api.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-coyote.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-dbcp.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-i18n-es.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-i18n-fr.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-i18n-ja.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-jdbc.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-jni.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-util-scan.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-util.jar, file:/D:/apache-tomcat-8.0.32/lib/tomcat-websocket.jar, file:/D:/apache-tomcat-8.0.32/lib/websocket-api.jar, file:/F:/workspace/credit-cloud-parent/credit-basic-api/target/classes/, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot-starter-data-mongodb/1.3.5.RELEASE/spring-boot-starter-data-mongodb-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/mongodb/mongo-java-driver/2.13.3/mongo-java-driver-2.13.3.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/data/spring-data-mongodb/1.8.4.RELEASE/spring-data-mongodb-1.8.4.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/data/spring-data-commons/1.11.4.RELEASE/spring-data-commons-1.11.4.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/com/fasterxml/jackson/core/jackson-annotations/2.4.6/jackson-annotations-2.4.6.jar, file:/F:/workspace/credit-cloud-parent/credit-basic-common/target/classes/, file:/D:/Program%20Files%20(x86)/repository/commons-beanutils/commons-beanutils/1.9.1/commons-beanutils-1.9.1.jar, file:/D:/Program%20Files%20(x86)/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar, file:/D:/Program%20Files%20(x86)/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar, file:/D:/Program%20Files%20(x86)/repository/commons-net/commons-net/3.3/commons-net-3.3.jar, file:/D:/Program%20Files%20(x86)/repository/com/qiniu/qiniu-java-sdk/7.0.8/qiniu-java-sdk-7.0.8.jar, file:/D:/Program%20Files%20(x86)/repository/com/google/code/gson/gson/2.3.1/gson-2.3.1.jar, file:/D:/Program%20Files%20(x86)/repository/com/squareup/okhttp/okhttp/2.7.1/okhttp-2.7.1.jar, file:/D:/Program%20Files%20(x86)/repository/com/squareup/okio/okio/1.6.0/okio-1.6.0.jar, file:/D:/Program%20Files%20(x86)/repository/commons-io/commons-io/2.5/commons-io-2.5.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/poi/poi/3.9/poi-3.9.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/poi/poi-ooxml/3.9/poi-ooxml-3.9.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/poi/poi-ooxml-schemas/3.9/poi-ooxml-schemas-3.9.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.jar, file:/D:/Program%20Files%20(x86)/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar, file:/D:/Program%20Files%20(x86)/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar, file:/D:/Program%20Files%20(x86)/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar, file:/D:/Program%20Files%20(x86)/repository/com/itextpdf/font-asian/7.0.0/font-asian-7.0.0.jar, file:/D:/Program%20Files%20(x86)/repository/com/itextpdf/kernel/7.0.0/kernel-7.0.0.jar, file:/D:/Program%20Files%20(x86)/repository/com/itextpdf/io/7.0.0/io-7.0.0.jar, file:/D:/Program%20Files%20(x86)/repository/com/itextpdf/layout/7.0.0/layout-7.0.0.jar, file:/D:/Program%20Files%20(x86)/repository/com/itextpdf/forms/7.0.0/forms-7.0.0.jar, file:/D:/Program%20Files%20(x86)/repository/com/itextpdf/pdfa/7.0.0/pdfa-7.0.0.jar, file:/D:/Program%20Files%20(x86)/repository/com/itextpdf/pdftest/7.0.0/pdftest-7.0.0.jar, file:/D:/Program%20Files%20(x86)/repository/com/github/pagehelper/pagehelper/4.1.6/pagehelper-4.1.6.jar, file:/D:/Program%20Files%20(x86)/repository/com/github/jsqlparser/jsqlparser/0.9.5/jsqlparser-0.9.5.jar, file:/D:/Program%20Files%20(x86)/repository/org/mybatis/mybatis/3.4.0/mybatis-3.4.0.jar, file:/F:/workspace/credit-cloud-parent/credit-thirdparty-api/target/classes/, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot-starter/1.3.5.RELEASE/spring-boot-starter-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot/1.3.5.RELEASE/spring-boot-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot-autoconfigure/1.3.5.RELEASE/spring-boot-autoconfigure-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot-starter-logging/1.3.5.RELEASE/spring-boot-starter-logging-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar, file:/D:/Program%20Files%20(x86)/repository/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar, file:/D:/Program%20Files%20(x86)/repository/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar, file:/D:/Program%20Files%20(x86)/repository/org/slf4j/jul-to-slf4j/1.7.21/jul-to-slf4j-1.7.21.jar, file:/D:/Program%20Files%20(x86)/repository/org/slf4j/log4j-over-slf4j/1.7.21/log4j-over-slf4j-1.7.21.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot-starter-actuator/1.3.5.RELEASE/spring-boot-starter-actuator-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot-actuator/1.3.5.RELEASE/spring-boot-actuator-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot-starter-web/1.3.5.RELEASE/spring-boot-starter-web-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot-starter-validation/1.3.5.RELEASE/spring-boot-starter-validation-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar, file:/D:/Program%20Files%20(x86)/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, file:/D:/Program%20Files%20(x86)/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar, file:/D:/Program%20Files%20(x86)/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar, file:/D:/Program%20Files%20(x86)/repository/com/fasterxml/jackson/core/jackson-databind/2.4.6/jackson-databind-2.4.6.jar, file:/D:/Program%20Files%20(x86)/repository/com/fasterxml/jackson/core/jackson-core/2.4.6/jackson-core-2.4.6.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/spring-web/4.2.6.RELEASE/spring-web-4.2.6.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/spring-webmvc/4.2.6.RELEASE/spring-webmvc-4.2.6.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/tomcat/embed/tomcat-embed-jasper/8.0.33/tomcat-embed-jasper-8.0.33.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/tomcat/embed/tomcat-embed-core/8.0.33/tomcat-embed-core-8.0.33.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/tomcat/embed/tomcat-embed-el/8.0.33/tomcat-embed-el-8.0.33.jar, file:/D:/Program%20Files%20(x86)/repository/org/eclipse/jdt/core/compiler/ecj/4.5/ecj-4.5.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/boot/spring-boot-starter-tomcat/1.3.5.RELEASE/spring-boot-starter-tomcat-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/tomcat/embed/tomcat-embed-logging-juli/8.0.33/tomcat-embed-logging-juli-8.0.33.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.0.33/tomcat-embed-websocket-8.0.33.jar, file:/D:/Program%20Files%20(x86)/repository/junit/junit/4.12/junit-4.12.jar, file:/D:/Program%20Files%20(x86)/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar, file:/D:/Program%20Files%20(x86)/repository/com/alibaba/dubbo/2.8.5-RC1/dubbo-2.8.5-RC1.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/spring-beans/4.2.6.RELEASE/spring-beans-4.2.6.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/spring-context/4.2.6.RELEASE/spring-context-4.2.6.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/spring-aop/4.2.6.RELEASE/spring-aop-4.2.6.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/spring-expression/4.2.6.RELEASE/spring-expression-4.2.6.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar, file:/D:/Program%20Files%20(x86)/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar, file:/D:/Program%20Files%20(x86)/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar, file:/D:/Program%20Files%20(x86)/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar, file:/D:/Program%20Files%20(x86)/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar, file:/D:/Program%20Files%20(x86)/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar, file:/D:/Program%20Files%20(x86)/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/curator/curator-framework/2.5.0/curator-framework-2.5.0.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/curator/curator-client/2.5.0/curator-client-2.5.0.jar, file:/D:/Program%20Files%20(x86)/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar, file:/D:/Program%20Files%20(x86)/repository/com/google/guava/guava/16.0.1/guava-16.0.1.jar, file:/D:/Program%20Files%20(x86)/repository/com/fasterxml/jackson-xml-databind/0.6.2/jackson-xml-databind-0.6.2.jar, file:/D:/Program%20Files%20(x86)/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.2/jackson-mapper-asl-1.9.2.jar, file:/D:/Program%20Files%20(x86)/repository/org/codehaus/jackson/jackson-core-asl/1.9.2/jackson-core-asl-1.9.2.jar, file:/D:/Program%20Files%20(x86)/repository/org/codehaus/jackson/jackson-xc/1.9.2/jackson-xc-1.9.2.jar, file:/D:/Program%20Files%20(x86)/repository/org/codehaus/woodstox/stax2-api/3.1.0/stax2-api-3.1.0.jar, file:/D:/Program%20Files%20(x86)/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar, file:/D:/Program%20Files%20(x86)/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar, file:/D:/Program%20Files%20(x86)/repository/org/slf4j/slf4j-log4j12/1.7.21/slf4j-log4j12-1.7.21.jar, file:/D:/Program%20Files%20(x86)/repository/jline/jline/0.9.94/jline-0.9.94.jar, file:/D:/Program%20Files%20(x86)/repository/com/github/sgroschupf/zkclient/0.1/zkclient-0.1.jar, file:/D:/Program%20Files%20(x86)/repository/com/alibaba/fastjson/1.2.8/fastjson-1.2.8.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/amqp/spring-rabbit/1.3.5.RELEASE/spring-rabbit-1.3.5.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/amqp/spring-amqp/1.5.6.RELEASE/spring-amqp-1.5.6.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/retry/spring-retry/1.1.2.RELEASE/spring-retry-1.1.2.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/org/springframework/spring-tx/4.2.6.RELEASE/spring-tx-4.2.6.RELEASE.jar, file:/D:/Program%20Files%20(x86)/repository/com/rabbitmq/amqp-client/3.3.4/amqp-client-3.3.4.jar]

举报
共有1个答案 最后回答: 1年前

你把你的springboot配置文件发出来看一下,貌似是你配置了spring.jackson这个鬼东西,但是取值为null,导致创建bean失败

org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors
Field error in object 'spring.jackson' on field 'null': rejected value [fail_on_numbers_as_enums]; codes [typeMismatch.spring.jackson.null,typeMismatch.null,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [spring.jackson.null,null]; arguments []; default message [null]]; default message [Failed to convert property value of type [java.lang.String] to required type [com.fasterxml.jackson.databind.DeserializationFeature] for property 'null'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [com.fasterxml.jackson.databind.DeserializationFeature] for value 'fail_on_numbers_as_enums'; nested exception is java.lang.IllegalArgumentException: No enum




顶部