How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
0 votes
0 answers
26 views

How to deserialize HttpHeaders in spring boot

I am implementing a caching system using redis with spring cloud gateway which uses netty. I have my cached body model below public class CachedResponse { HttpStatus httpStatus; ...
0 votes
0 answers
11 views

SpringBoot REST XML Lists Response How To Get Entities Named Correctly (Not "items")

We have a website using Springboot that has a rich REST API and returns many different types of entities. We have recently upgraded to SpringBoot v2 from v1 and found an issue with the REST XML ...
0 votes
1 answer
16 views

How to depend Spring with Jackson and without Web

How to properly connect jackson to a standalone SpringBoot application without unnecessary dependencies (web)? Java 18 plugins { id 'org.springframework.boot' version '2.7.5-SNAPSHOT' id 'io....
0 votes
0 answers
33 views

How to read JSON in Spring Boot? - JSON parse error: Cannot deserialize value of type `X` from Array value (token `JsonToken.START_ARRAY`);

I am sending data from an Angular application to SpringBoot. The application creates an order and sends it to the server. My problem is that the server does not receive the correct object. I console....
-1 votes
0 answers
61 views
+250

Memory Leak in Jackson ObjectMapper's SerializerCache

Not quite sure if this is a Jackson question or a Springboot question, or Jetty: My microservice became unresponsive in production apparently due to excessive memory usage (telling from OS RSS stat) ...
  • 11.2k
0 votes
0 answers
32 views

Jackson deserialize a date as Integer array in Local datetime/LocalDate

I'm using Java 17, spring-boot 2.7.4 and it's related Spring dependencies. I have a Kafka consumer that consumes an object representing a date as an Integer array as below: { "date": [...
0 votes
1 answer
50 views
+50

How to correctly convert MultiValueMap to Json with Jackson

I am trying to return a Json created from the queries of a request. For example: url.com?field1=value1&field2=value2&field1=value3 Should return: "queryString": { "field1&...
0 votes
1 answer
10 views

Deserialize Json to Pojo without case sensitivity

I have been trying to figure out how to deserialize json coming from an API response to models and ignore case. I can get it to work with something like this: Json: { "Name": "foo&...
0 votes
1 answer
21 views

Cannot use field (interface) in request body in spring boot for polymorphism support

I plan that my spring project can handle multiple request forms like: { "notification": "order_creation_notification", "data": { "date": "22 ...
-1 votes
1 answer
47 views

Jackson with Spring WebFlux

Json: { "response": { "count": 3, "items": [ 6651536, 20410167, 40345521 ] } } NOT WORK - FriendsDTO: ...
4 votes
2 answers
94 views

Jackson's ObjectMapper with RowMapper in SQL

We are using ObjectMapper. When using ObjectMapper with RowMapper, should it be declared inside each mapRow (seen below), or outside of mapRow as a class public member? I assume it should be outside ...
0 votes
0 answers
31 views

Spring Boot: Problems deserializing JSON objects. Change property names

I'm developing a back-end web application using Spring Boot with Java and I have the following problem: A REST service returns me the following JSON: { "cap":"98888" } This is ...
0 votes
0 answers
37 views

Redis Deserialization Issue between spring version 4.3.5.RELEASE and spring boot version 2.6.9

Getting below exception while deserializing object in springBoot app (version 2.6.9) which was previous serialized and saved in Redis using spring only app (version 4.3.5) org.springframework.data....
0 votes
1 answer
57 views

How to serialize request object without field name in Spring Boot?

I have simple REST Controller (in Kotlin) method with @RequestBody object. @PostMappging(...) fun postTestFunction(@RequestBody data: ExampleObject) { ... } Where ExampleObject is: class ...
0 votes
0 answers
25 views

Cannot resolve PropertyFilter with id while inserting in couchbase

We are trying to use the filter provided by jackson in our spring application. We annotated the User.java class with @jsonFilter("user") In user service class we are filtering it as below ...
  • 459

15 30 50 per page
1
2 3 4 5
115