Getting com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class
Aug 19, 2020
I am trying to write small microservice benchmark for java, lately java microservice framework are popping up from every corner actually it is becoming little bit annoying, java world becoming js world.
Anyway while writing some test I start getting the error below
This was coming from quarkus example. I got same error in spring boot and micronaut, my first approach was configure the bean or singleton and give
but that was brining one more file and class to the scene. I dont like extra code, and here is easier solution.
full code
adding one annotation is more elegant solution then mapper configuration , I hope this time I wont forget this solution.