解决Exception in thread “main“ java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/util/Jackson

今天用springboot时候报错,Exception in thread “main” java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/util/Jackson,一排查发现,是导入依赖的版本不对,导致报错,把版本号去掉换成自动匹配就可以了。

           <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </dependency>

你可能感兴趣的:(SpringBoot,java,spring,boot,开发语言)