212,837 questions
Best practices
0
votes
1
replies
8
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 ...
-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 ...
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&...
1
vote
1
answer
38
views
Spring Boot 4 upgrade hibernate jpa json functions incubated
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
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 ...
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 {
...
1
vote
1
answer
69
views
Embedded Apache Artemis not starting with Spring Boot
I have created a very simple Spring Boot application to experiment with embedded Apache Artemis.
I have the following build.gradle:
plugins {
id 'java'
id 'org.springframework.boot' version '4....
1
vote
0
answers
54
views
Spring Framework 7 (MVC): MappingJacksonValue deprecated - how to select JsonView dynamically per request
In Spring Framework 6 (Spring MVC), several of my @RestController endpoints return a MappingJacksonValue so I can set a Jackson serialization view dynamically based on the authenticated user’s group (...
Best practices
0
votes
1
replies
59
views
Force discard of the HTTP response body in Spring Webflux to avoid out of memory
I have a reactive spring webflux rest api which exposes a REST endpoint.
The business logic of the rest endpoint is straightforward. Based on some ID, I am going to call another third-party service I ...
Advice
0
votes
0
replies
45
views
Using Spring Modulith for converting micro services to modular monolith
Context:
We started building the application with multiple micro services at first and now at a point where the application is more mature and changes are not frequent, lots of discussions were done ...
-4
votes
1
answer
49
views
What are the consequences of using pac4j-oidc v6, which depends on spring-core? [closed]
I noticed that starting from version 6.0.0, pac4j-oidc has a dependency on spring-core.
What consequences will this have for my project (Java 17 + Hibernate 5 + Tomcat 9) if I start using pac4j-oidc ...
1
vote
1
answer
132
views
Spring Boot and Log4J database appender problems
We have a situation where we need to write the logs from an app running in multiple pods on an OpenShift project to the database so I slapped together a quick database logging POC with log4j2, and got ...
Advice
0
votes
0
replies
32
views
Spring Modulith architecture cycle problem
I have a fresh and minimal Spring boot 4 project with Spring Modulith which you can see here.
I have two modules User and Task. A User has zero or more Tasks. Both modules expose a MTO (Module ...