Gson / jackson Error with spring, Spring eureka client server error

 This is because of version mismatch


Either add parent of spring in your pom file

Or add seperate gson dependency in pom file


or add jackson core, annotations etc or, json what ever error is arrived with its own version from maven repo manullay. Its not good idea to depend on spring parent to solve it.


<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson-version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson-version}</version>
</dependency>

Comments

Popular posts from this blog