Skip to main content
Filter by
Sorted by
Tagged with
1 vote
3 answers
110 views

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 ...
Jeremy Lanssiers's user avatar
Advice
0 votes
1 replies
23 views

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 ...
Abhishek Singh's user avatar
0 votes
0 answers
22 views

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 ...
Tony Schwartz's user avatar
0 votes
0 answers
42 views

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 ...
Tobia's user avatar
  • 9,605
-1 votes
0 answers
41 views

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-...
Nikhil Dubey's user avatar
0 votes
1 answer
53 views

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 @...
Thomas's user avatar
  • 1
1 vote
0 answers
61 views

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 ...
Gustav Blaß's user avatar
0 votes
0 answers
23 views

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 ...
Tobia's user avatar
  • 9,605
2 votes
1 answer
53 views

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 ...
Anjum Fatima's user avatar
2 votes
1 answer
80 views

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....
Tecco Temtsa's user avatar
1 vote
1 answer
64 views

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 ...
Anna R's user avatar
  • 25
1 vote
1 answer
88 views

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 ...
Phoenix's user avatar
  • 133
Best practices
1 vote
1 replies
62 views

It seems Spring has two classes to represent URLs efficiently, UriComponentsBuilder and UriComponents. UriComponentsBuilder builder = UriComponentsBuilder.fromUriString("https://stackoverflow.com&...
tkruse's user avatar
  • 10.8k
2 votes
1 answer
102 views

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 ...
Manveru's user avatar
  • 23
0 votes
1 answer
57 views

Is there any way to make Spring decodes both string (es. yyyy-mm-dd HH:MM:ss) and long (unixtime milliseconds) for Date objects?
Tobia's user avatar
  • 9,605
0 votes
1 answer
115 views

I recently upgraded to Spring Boot 3.5 (Jakarta packages) and noticed my global exception handler isn’t being triggered. @RestController public class UserController { @GetMapping("/test")...
Lavi Kumar's user avatar
0 votes
1 answer
89 views

I want to redirect all routes like /api/user/home/ to /api/user/home. Here is the configuration file for gateway: spring: application: name: gateway cloud: gateway: routes: -...
Cody's user avatar
  • 2,691
-3 votes
1 answer
105 views

I'm working on my first Spring MVC project (not Spring Boot), and I’m running into a 404 issue when calling the /ping route for a health check. I have a simple PingController defined like this: ...
Marouane Amanar's user avatar
0 votes
1 answer
60 views

I'm working on a Spring Boot + Thymeleaf application where I have an edit page. In my controller, I want to use different DTOs for the GET and POST methods: ResponseDto for displaying data and ...
NONAME's user avatar
  • 63
0 votes
1 answer
60 views

In a spring boot application, I have to expose apis over tls/https and at the same time, I have to consume other apis that are exposed over tls/https. What is the best way to configure the truststore ...
l a s's user avatar
  • 3,923
1 vote
0 answers
63 views

I'm struggeling with an Spring Boot Update of my service, from Spring Boot 2.7 to 3.2. This update includes an update of Spring Security 5.7 to 6.1. The class WebSecurityConfigurerAdapter is no longer ...
SWYM's user avatar
  • 53
0 votes
0 answers
74 views

I'm using Spring Boot 3.5.6 with Thymeleaf 3.1.3, and I'm trying to implement a dynamic layout system where I inject a fragment into layout.html using a model attribute. Controller: @GetMapping("/...
IamDMahesh's user avatar
0 votes
0 answers
155 views

I've faced with the following error while starting my spring boot application: Error starting ApplicationContext. org.springframework.beans.factory.UnsatisfiedDependencyException:Error creating bean ...
pityamskoy's user avatar
0 votes
0 answers
114 views

I have a task to implement a streaming HTTP MCP server in Spring Boot. I injected the dependencies as follows: <dependency> <groupId>io.modelcontextprotocol.sdk</groupId> <...
ivan stefanyuk's user avatar
0 votes
0 answers
43 views

The Qmatic SDK documentation mentions that we can use their connectors (for example, BranchConnector) to retrieve data from the Qmatic system instead of calling the REST API directly. However, the ...
Sam Raju's user avatar
  • 199
0 votes
0 answers
65 views

I am in the process of migrating spring boot to version 3.5.6 (from 2.2.2). I am getting the following error while running the boot run for the main class Error: Could not find or load main class com....
Sudhir's user avatar
  • 59
0 votes
0 answers
64 views

I’m upgrading a legacy Java Spring MVC application. Current setup: Java 1.8 (recently upgraded from Java 1.7) Spring 3.2.18 Uses the old AbstractFormController, SimpleFormController, and XML-based ...
Shanikiran Nimbalkar's user avatar
1 vote
0 answers
73 views

I was testing a different Spring Boot + Thymeleaf example projects using 3.5.5 and the Thymeleaf view seemed to break if the 'spring.thymeleaf.enabled' setting was in application.properties. It didn't ...
jla's user avatar
  • 7,494
0 votes
0 answers
73 views

I’m building an API with Spring Boot + Kotlin and I have a scenario where a GET endpoint receives several query parameters. Instead of declaring many @RequestParam in the controller, I’d like to group ...
victor hugo's user avatar
0 votes
0 answers
43 views

I have to improve an import job in my web app made with Spring MVC Framework. This job can take a bit then would be great to give the user the progression and the possibility to interrupt it. I'm ...
Tobia's user avatar
  • 9,605
1 vote
1 answer
91 views

I'm trying to test my @RestController, but it doesn't work, giving me the error org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'studio.abos.springcalc....
SK19's user avatar
  • 221
-4 votes
1 answer
58 views

/login page seems to be stuck in a loop of being redirected to self. For context, I want /register & /login to be visible without authentication, while all other pages in my project should ...
Sumedh Kudale's user avatar
0 votes
0 answers
133 views

I’m building a Spring Boot application that uses RabbitMQ. Here is my current setup: application.properties spring.rabbitmq.host=localhost spring.rabbitmq.port=5672 spring.rabbitmq.username=guest ...
tnw's user avatar
  • 1
2 votes
1 answer
72 views

Right now, I have a web application that returns a redirect response if certain conditions are met. That comes back to the browser as a 302 redirect. I would like it to be a 301 redirect instead. I ...
Neil's user avatar
  • 405
1 vote
1 answer
58 views

I have created two api's in my spring mvc project which have identical structure. But while calling using Postman or while hitting the APIs in browser/UI project, one is working without any credential ...
BipLab's user avatar
  • 35
0 votes
0 answers
48 views

I'm generating controller code from openapi3 spec using gradle openapi generator plugin 6.3.0. Generate, compile works fine, but getting a runtime error: Caused by: java.lang.IllegalStateException: ...
JayabalanAaron's user avatar
1 vote
0 answers
78 views

I'm trying to share the HTTP session between a Spring MVC (Servlet-based) application and a Spring WebFlux application using Spring Session backed by Redis. What I'm trying to achieve: A user ...
DarkVaderM's user avatar
0 votes
0 answers
65 views

I'm building a REST API with Spring Boot and I have a controller for handling tasks. When I try to send a POST request to /tasks using Postman, I get a 404 Method Not Allowed error. My goal is to send ...
nihad.xo's user avatar
0 votes
1 answer
67 views

I am having trouble binding custom key and value map after migrating to 6.x where binder.getTarget() comes out to be null. I debugged and it turnes out binder target is set later point of time. Is ...
secret129's user avatar
  • 221
0 votes
0 answers
84 views

I'm working on a WebSocket proxy microservice in Java, built using the org.java_websocket.* library. It connects to a remote server that streams VNC data. The goal is to allow clients—like noVNC—to ...
Adam's user avatar
  • 51
0 votes
2 answers
204 views

I'm building a Spring Boot microservices application where an auth-service generates JWTs and a user-service validates them. I'm consistently getting a 401 Unauthorized error in the user-service when ...
Kiran Gavhane's user avatar
-2 votes
1 answer
366 views

I wanted to upgrade my spring version from 5.3.39 to the 6 series. But when I tried to do that, it didn't compile and threw an error. This is the error that I'm getting: Failed to execute goal org....
Nishanth SR's user avatar
1 vote
1 answer
111 views

I'm upgrading my main application from Spring Boot 2.x to 3.x. The upgrade is mostly successful, except for a runtime compatibility issue caused by 3rd-party or legacy internal libraries that still ...
Med Cezir's user avatar
-1 votes
1 answer
123 views

I believe I've uncovered a bug in spring framework with the forward: notation. This is happening with XML based spring applications. I found this while upgrading my existing spring framework ...
Thom's user avatar
  • 15.3k
0 votes
1 answer
59 views

I am upgrading a project from Spring 3 to Spring 6 using XML based DI. I have a TranslatingViewResolver that extends AbstractCachingViewResolver. Here is a debug telling how this is operating... ....
Thom's user avatar
  • 15.3k
2 votes
1 answer
92 views

I am currently learning about spring and the concept of beans. I learned that in spring project you can configure in 3 ways -- xml, annotation-based and java-based. I am trying to configure my ...
Joseph Wu's user avatar
1 vote
1 answer
175 views

I have a Spring mvc app with working spring security configuration. I have a single method that it use WebFlux and require security. How can i use Spring security inside that method ? It seams not ...
Alessandro Scarozza's user avatar
0 votes
1 answer
76 views

Doesn't Spring check the expiration date of a JWT token, at least in tests? If so, do I have to do it manually in my code, or is there a way to make Spring do it itself? <parent> <...
Sergey Zolotarev's user avatar
1 vote
0 answers
157 views

I am using spring gateway service and eureka discovery server for rest calls. How to configure these services for spring gRPC?
OmniCoder77's user avatar
0 votes
1 answer
103 views

Suppose my Swagger-enabled endpoint receives lots of request parameters. I don't want to list all of them one by one. Instead, I want to group them somehow. Preferably, as a DTO: if I declare a Map, ...
Sergey Zolotarev's user avatar

1
2 3 4 5
1178