I have finally found a solution. I changed the import statement from
import com.fasterxml.jackson.annotate.JsonIgnore; // com. instead of org.
to
import org.codehaus.jackson.annotate.JsonIgnore;
Basically you have to make sure you are using the same class everywhere.
Related Contents:
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- Only using @JsonIgnore during serialization, but not deserialization
- Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
- How do I call the default deserializer from a custom deserializer in Jackson
- java.lang.IllegalArgumentException: No converter found for return value of type
- How to customise the Jackson JSON mapper implicitly used by Spring Boot?
- Configuring ObjectMapper in Spring
- Serializing enums with Jackson
- Avoid Jackson serialization on non fetched lazy objects
- Spring REST Service: how to configure to remove null objects in json response
- Generics with Spring RESTTemplate
- How do I obtain the Jackson ObjectMapper in use by Spring 4.1?
- Using Spring RestTemplate in generic method with generic parameter
- Spring Rest POST Json RequestBody Content type not supported
- Convert Map to JSON using Jackson
- Why does Jackson 2 not recognize the first capital letter if the leading camel case word is only a single letter long?
- Right way to write JSON deserializer in Spring or extend it
- ObjectMapper can’t deserialize without default constructor after upgrade to Spring Boot 2
- Spring REST multiple @RequestBody parameters, possible?
- Parsing JSON in Spring MVC using Jackson JSON
- JPA Transient Annotation and JSON
- Spring configure @ResponseBody JSON format
- How to parse the response body in Java, when the HTTP request has return status 401
- Running code after Spring Boot starts
- Spring cron expression for every day 1:01:am
- javax.transaction.Transactional vs org.springframework.transaction.annotation.Transactional
- Circular dependency in Spring
- Spring: how do I inject an HttpServletRequest into a request-scoped bean?
- @Autowired – No qualifying bean of type found for dependency
- @Autowired bean is null when referenced in the constructor of another bean
- Gradle – Could not find or load main class
- disabling spring security in spring boot app [duplicate]
- How to use Gitlab CI to build a Java Maven project?
- Convert JsonNode object to Map
- Spring MVC (async) vs Spring WebFlux
- What is a NoSuchBeanDefinitionException and how do I fix it?
- What RuntimeException can Spring CrudRepository throw?
- Debugging Spring configuration
- Deserializing into a HashMap of custom objects with jackson
- Error in Java Import statement “The import javax.validation.constraints.NotNull cannot be resolved”
- Conditional spring bean creation
- Choosing between Thymeleaf and Angular for a new Spring MVC project [closed]
- Create spring repository without entity
- Struts2 vs Spring 3 [closed]
- How to Validate JSON with Jackson JSON
- Get last records ordered by date on Spring Data
- IntelliJ does not terminate Spring Boot applications build with gradle
- BeanFactoryPostProcessor and BeanPostProcessor in lifecycle events
- Spring MVC – @Valid on list of beans in REST service
- Which one is lighter, JSON or BSON?