# Backend error report


Gson packet loss

Caused by: java.lang.NoSuchMethodError: com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder;

It is estimated that the jar package conflicts, plus the jar package

<dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.6.2</version>
</dependency>

gosn package is missing

Correct the classpath of your application so that it contains a single, compatible version of com.google.gson.GsonBuilder

<dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.6.2</version>
</dependency>

Jackson packet loss

Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.StreamWriteFeature

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

hive-jdbc SlF4JJar package conflict

SpringBoot log configuration uses LogBack as log output by default!

The Slf4jar package conflicts are as follows: the top Logback-classic is the default log output of SpringBoot
Insert picture description here

  • Solution: remove redundant jar packages
    Insert picture description here
    Insert picture description here

Slf4j jar package is missing

Failed to load class “org.slf4j.impl.StaticLoggerBinder“

Insert picture description here

<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
 <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-nop</artifactId>
        <version>1.7.25</version>
</dependency>

Guess you like

Origin blog.csdn.net/qq_37248504/article/details/109346997