All Questions
Tagged with spring-mvc-initbinders or spring-mvc
58,889 questions
0 votes
3 answers
67 views
Using Pagination & Sorting in Spring Boot 4 with CrudRepository & PagingAndSortingRepository
I am doing the learning on Broadcom's Spring Academy to be up to date with the latest best practices. I bumped Spring Boot to 4.0.0 instead of the 3.0.0 on Spring Academy. But I am having some issues ...
Advice
0 votes
1 replies
21 views
Silent SSO with Auth0 in legacy Spring MVC (SSR) app with LDAP login and Spring Security 5
How to implement Auth0 Universal Login + Silent SSO + SLO in a legacy Spring MVC (SSR) app? Can the Auth0 SPA SDK be used? I have a legacy Spring MVC (server-side rendered) application using: Spring ...
0 votes
0 answers
22 views
Spring boot MultipartFile for most but Streaming for some
For most of my Controllers, I have a bean and optionally a MultipartFile @RequestParam and this works very nicely. It's good for files that are relatively small. But separately I have a small number ...
0 votes
0 answers
41 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 votes
0 answers
41 views
java.lang.IllegalStateException: getAttribute: Session already invalidated when calling API locally [duplicate]
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-...
0 votes
1 answer
53 views
@RestController in existing spring-mvc servlet in Spring Framework 4.3 [closed]
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 @...
1 vote
0 answers
59 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
23 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 ...
2 votes
1 answer
53 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 ...
2 votes
1 answer
80 views
Login infinitely retrying with bad credentials
I am using Java Spring boot and Thymeleaf. When trying to login with bad credentials, the page freezes for a few minutes, and it says the page isn't working. When I activate debug in application....
1 vote
1 answer
57 views
RequestDispatcher forward(request,response) works in Tomcat 10 but not in Tomcat 11
I'm in the process of doing a technology upgrade for a Spring mvc app. I'm currently using Java 21, Spring 6, and Thymeleaf 3. I've tested the application thoroughly, running it on Tomcat 10. The app ...
1 vote
1 answer
81 views
Failed to instantiate [org.springframework.security.web.SecurityFilterChain]: Since more than one mappable servlet in your servlet context:
I am applying Spring Security in a Spring MVC (Spring Boot) application. The application already has CSRF and Session Management and I want to apply JWT Authentication along with Spring security. But ...
Best practices
1 vote
1 replies
62 views
spring UriComponents tobuilder to UriComponentsBuilder
It seems Spring has two classes to represent URLs efficiently, UriComponentsBuilder and UriComponents. UriComponentsBuilder builder = UriComponentsBuilder.fromUriString("https://stackoverflow.com&...
2 votes
1 answer
102 views
Spring-Web OOM when streaming after update from 6.0.23 to version 6.1.4 and above
We have an application where we are streaming files from the filesystem and are PUTting them to an endpoint. This worked fine up to spring-web version 6.0.23. After updating to version 6.1.4, we ...
0 votes
1 answer
57 views
Spring MVC Json decoder to accept both string and long millis values
Is there any way to make Spring decodes both string (es. yyyy-mm-dd HH:MM:ss) and long (unixtime milliseconds) for Date objects?