All Questions
Tagged with spring-java-config or spring
212,832 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
18
views
Single instance of the application is creating high thread count in Java/SpringBoot Application
I have a business layer which is on Java & Spring Boot.
There are around 10 instances of an application that are running on prod and each has same exact configuration on machines & ...
0
votes
0
answers
12
views
Various places to configure httpclient timeout in Spring boot
I am using Spring boot version 3.5.9 and httpclient version 5.5.1, and aware that Spring boot have some issue regarding set the connect timeout for httpclient 5.5.1.
refer the github issue here: https:...
Advice
0
votes
0
replies
21
views
Various places to configure httpclient timeout in Spring boot
I am using Spring boot version 3.5.9 and httpclient version 5.5.1, and aware that Spring boot have some issue regarding set the connect timeout for httpclient 5.5.1.
refer the github issue here: https:...
0
votes
0
answers
37
views
Redis with SpringBoot - store java Records with Type Class
I want to store the class of the serialized Record inside the Redis JSON cache.
I know it's possible to configure the Jackson ObjectMapper to activate the default typing.
@Bean
public ObjectMapper ...
4
votes
0
answers
127
views
Spring Boot 4 and Java 25
Currently, our backend project (Web Flux+Kotlin Coroutines/R2dbc/PostgreSQL) worked well when upgraded to Spring Boot 4 with Java 21/Kotlin 2.3.
Recently we were trying to upgrade Java to 25, about ...
-5
votes
0
answers
209
views
Case is being created twice by calling the API twice in Spring/Java [closed]
We have some code like this that retries API thrice as part of polling mechanism. In case it doesnt complete it will create a case by calling another API. What is happening is in logs I see two ...
4
votes
1
answer
102
views
Jakarta ConstraintValidator: how to implement conditional validation?
I have a single request DTO ProfileRequest that is used by two controller endpoints:
public ResponseEntity<ProfileDto> createProfile(@Valid ProfileRequest request) {
}
public ResponseEntity<...
0
votes
1
answer
77
views
Springboot Hibernate Entity Listener not working
I am working with Java 17, Spring: 2.7.18 , Hibernate: 5.2.18.Final . When I was using HikariDatasource, AbcDomainListener onPreload was working fine both on Intellij and docker, but when I switched ...
0
votes
0
answers
71
views
How can I group routes with Spring?
The given project is not using the standard controller way, it's more like 1 handler per controller ( CQRS like )
Each API route should start with the prefix /api
Command routes should follow with /...
0
votes
1
answer
57
views
Constant 404 errors using Spring Cloud Reactive Gateway
I'm attempting to test Reactive Gateway using simple Spring Cloud static routing with a couple of basic services generated from Spring Boot 4.0.1 (Spring Cloud 202510) using Java 25. I keep getting ...
Best practices
0
votes
3
replies
29
views
ViewControllerRegistry register view with model
Is there a way to bind data when registering a view? For example, I want to register a view named userProfile using ViewControllerRegistry and bind the model data needed for this page.
public void ...
0
votes
1
answer
56
views
How to identify correct Spring Cloud Gateway dependencies for a Spring Boot MVC project?
I have a Spring Boot MVC project, where I now wish to proxy another webapp running on the same server. I'm fronting with Spring for security and URL consistency reasons.
Existing pom.xml was ...
1
vote
1
answer
73
views
Cannot resolve method findRequiredField in ReflectionUtils
I am trying to update entity fields dynamically using reflection in a Spring Boot application.
I wrote the following code:
public EmployeeDTO updateEmployeeById(Long employeeId, Map<String, Object&...
1
vote
1
answer
53
views
Spring Boot 4 upgrade hibernate jpa json functions incubated [closed]
When upgrading to Spring Boot 4 (Hibernate 7) you can get the message that the json functions are incubated, i.e. default its turned off. It will then tell you to set hibernate.query.hql....
1
vote
0
answers
180
views
Spring Framework 7 (Spring Boot 4) API Versioning feature not behaves as expected
I am trying to understand the new API Versioning feature introduced in Spring 7 and seems like something is not right. According to the spring documentation, if versioning is enabled and no version ...