All Questions
Tagged with spring-mvc-initbinders or spring-mvc
6 questions from the last 7 days
2 votes
1 answer
48 views
Can a Spring Framework 7.x WAR run on a Jakarta EE 10 server?
I’m working on a web application which is packaged as a WAR that I’m planning to upgrade to Spring Framework 7.x. I noticed that Spring 7 requires Jakarta EE 11, but the environment I need to deploy ...
0 votes
0 answers
26 views
Spring throws UnknownContentTypeException for empty json object property
I'm working with 2 component with Spring MVC that shares a REST API protocol. The server gives this answer: { "id":1, "alerts": {} } Both shares the same class to map this ...
1 vote
0 answers
54 views
Spring: How to redirect back to the form after authenticating its POST request?
I have got a (Thymeleaf) form which I have made accessible to all users, even to those who are not logged in, in order to improve the UX. Only submitting the form (through a POST request) requires ...
0 votes
0 answers
34 views
java.lang.IllegalStateException: getAttribute: Session already invalidated when calling API locally
I am getting the following exception when I hit my API on my local server: java.lang.IllegalStateException: getAttribute: Session already invalidated [INFO ] 2025-11-24 17:32:55.729 [http-nio-8080-...
1 vote
1 answer
40 views
@RestController in existing spring-mvc servlet in Spring Framework 4.3
I am maintaining a Spring 4.3 MVC app, upgrading it is a complicated and long term task. For my setup, XML-based, I did not find much on the internet, mostly Spring Boot stuff. I tried adding a @...
0 votes
0 answers
21 views
How can I use a custom Date deserializer for Json RequestBody?
I'm using Spring MVC and I would like to control the deserialization of Date objects in RequestBody. I saw I can set a custom JsonDeserializer in the input object, but I would like to set a global ...