150,625 questions
-3
votes
0
answers
28
views
RBAC in spring security integrated with keycloak [closed]
Looking for best practices to implement RBAC in spring security within keyclock integration.
0
votes
1
answer
35
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 ...
0
votes
0
answers
30
views
Unable to open React link from email when JWT token is missing
I send an email containing a link to a protected page, for example:
http://localhost:8080/application/main/page
If the user is already logged in, the page opens correctly.
If the user is NOT logged ...
1
vote
0
answers
45
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&...
3
votes
1
answer
29
views
Vaading 25 - Theme `@StyleSheet` annotation could not found the resources
I 'm building a Spring Boot application using Vaadin 25.0.2. Here's a snippet of my main application
@SpringBootApplication
@StyleSheet(Aura.STYLESHEET)
@PWA(name = "PACKIT project", ...
1
vote
0
answers
79
views
Connection reset while trying to make a POST request to our API
I am facing an issue with a connection reset error while trying to make a POST request to our API. Below are the details of the problem:
Error log:
org.springframework.web.client....
Advice
0
votes
1
replies
50
views
H2 Database - Reclaiming unused space like Derby
With the recent retirement of Apache Derby, I'm migrating my database to H2.
In my Spring application, I have a cron job that executes the following Derby native query in order to reclaim unused space:...
1
vote
0
answers
139
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 ...
2
votes
1
answer
49
views
Message Source with Spring Boot
I am trying to use MessageSource with my Spring application for message constant. I tried everything but my message is not shown in Swagger.
/src/main/resources/message_en.properties
This is my ...
1
vote
1
answer
106
views
How can I dynamically change the thread pool size in a running Spring Boot ExecutorService without restarting the application?
I am working on a Spring Boot application where I use a ThreadPoolTaskExecutor to handle background tasks. Currently, the thread pool size is configured in application.properties, like this:
spring....
1
vote
1
answer
97
views
Spring Boot: 400 Bad Request when sending JSON POST request to REST API
I am working on a Spring Boot application where I am trying to save a Question entity using a POST API. However, whenever I send a JSON request from Postman, I receive 400 Bad Request.
I expected the ...
1
vote
1
answer
40
views
CrudRepository List<T> query of parent entity T with OneToMany child entity returns a lazy list of parent entities
Can someone explain to me the following behavior I'm seeing. I have the following simple setup.
@Entity
public class Contract {
@Id
private Long id;
//...
@OneToMany(mappedBy="...
1
vote
1
answer
63
views
Spring Cloud Stream: "Failed to locate function" warning when using custom Consumer abstraction
I am encountering a warning when starting my application using Spring Boot 3.5.8 and Spring Cloud Stream 2025.0.0.
To provide some context, I created an abstraction over Consumer to handle boilerplate ...
1
vote
1
answer
61
views
Spring Boot 4 Logging in via Oauth2 and Micrometer throws warnings
With Spring boot 4 and micrometer enabled when I login using Spring Security Oauth2, I get ~30 warnings per login with a sample below
2025-12-27T13:10:37.772-05:00 WARN 27400 --- [ioEventLoop-5-1] [,...
3
votes
1
answer
82
views
Compatible versions of bucket4j - NoSuchMethodError: 'void io.github.bucket4j.distributed.proxy.ClientSideConfig<init>(...)'
I have a Gradle project with the following configuration:
plugins {
id 'org.springframework.boot' version '3.5.0'
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
}
ext {
...