Spring-boot-starter-parent的Spring jackson异常

时间:2018-03-22 17:20:27

标签: java spring spring-boot spring-boot-starter

我已将spring版本从1.4.3升级到1.5.3,并开始在开发环境中遇到以下问题。在我当地它工作正常。我清除了我的本地.m2目录,它在1.5.3下工作正常但在我的QA环境中由于以下错误而失败

    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.5.3.RELEASE</version>

我正在使用1.4.3.RELEASE它工作正常。

      logger_name:   org.springframework.boot.bind.PropertiesConfigurationFactory   
             message:    Field error in object 'spring.jackson' on field 'null': rejected value [inclusion]; 
    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.SerializationFeature' 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.SerializationFeature] for value 'inclusion'; nested exception is java.lang.IllegalArgumentException: 
No enum constant com.fasterxml.jackson.databind.SerializationFeature.inclusion] 

任何帮助可能出错?

0 个答案:

没有答案