150,511 questions
-2
votes
0
answers
23
views
Junie declares: "Spring Boot 4 isn't released yet, I will use the last stable version 3.4.3". But Spring Boot 4 is released for months
On a context.md file, I specify willing Spring Boot 4.0.3 for API:
# Contexte du Projet - beaufort-brise
## Description Générale
- **Nom** : beaufort-brise
- **Objectif** : Projet en cours de ...
0
votes
1
answer
42
views
Spring-core 7 does not support ExceptionCauseClassifierRetryPolicy
How to specify different retry policy for different exceptions in Spring-core 7 with Spring-rabbit-4.0.x and Spring-retry-2.0.12.
Something like below was possible in Spring-core 6 and below.
final ...
4
votes
0
answers
81
views
Error with symbol not found: "Method onConstructor_()"
Consider:
@AllArgsConstructor(onConstructor_ = @Autowired)
I used this @AllArgsConstructor Lombok annotation in my class repository during Spring Boot work.
cannot find symbol
symbol: method ...
Tooling
0
votes
0
replies
42
views
Spring boot structured logging issue
Current spring implementation of structured logging with ECS format creates object "service" with fields:
name, version, environment, node
I would like to add field "id" to the ...
Advice
0
votes
2
replies
52
views
Need help in developing Multi-user Blog platform using java full stack
I need help designing a Multi-User Blog Platform using Spring Boot and React or with HTML, CSS, and JavaScript. What basic modules should I implement?
What should be my first step to start the project?...
-9
votes
0
answers
87
views
how to Get client machine name in web application [closed]
i have SSO login System
i want user details. username,hostname,OSversion etc..
I have a Java web application that needs to know the computer name of clients connecting to it.
i not need (InetAddress....
-1
votes
0
answers
31
views
Enable logger under base path for management endpoints
Im using spring boot 3.5.x, and have configured the following:
management.endpoints.web.exposure.include=info,health,metrics,loggers
management.endpoints.web.base-path=/
and my security config:
....
Advice
0
votes
2
replies
60
views
Spring @Transactional EgorX_x
I have a Spring service class with two methods, both annotated with @Transactional. When I call the second method from the first one internally (within the same bean), the transaction of the second ...
Tooling
0
votes
2
replies
87
views
Spring Boot Docker Compose on Multi-Module project
I have a monorepo with 7 subprojects(modules), where 6 of these are a Spring Boot application.
I am also using Spring Boot Docker Compose dependency
<modules>
<module>common</module&...
0
votes
0
answers
50
views
NoSuchMethodError: ExtensionContext$Store.computeIfAbsent with springboot 4.0.0
I am encountering a
java.lang.NoSuchMethodError
when running my integration tests using Spring Boot and Testcontainers.
The error specifically mentions:
java.lang.NoSuchMethodError: 'java.lang.Object ...
Best practices
0
votes
1
replies
91
views
Is it safe to reuse UserDetails from SecurityContext instead of querying the database again?
I am implementing JWT authentication with Spring Security. In this filter I validate the JWT, extract the email, and then load the user using UserDetailsService.
@Component
@RequiredArgsConstructor
...
0
votes
0
answers
56
views
Oauth 2.0 client authentication flow with Spring with apiKey and apiSecret
I would like to use the spring framework for client authentication but I have an unusual message format to retrieve the bearer token. The closest is client_secret_post but not quite. Below is the curl ...
Advice
2
votes
2
replies
83
views
what's the best way to audit oldValues in spring boot?
I am working on a project where I have to audit some fields, I was going to use hibernate envers, but since it doesn't extend to custom logic, I am now in between using AOP to intercept methods with a ...
0
votes
1
answer
54
views
UnsatisfiedDependencyException when using @Nested Junit5 TestClass in parent class with Spring Boot 4
Disclaimer : this is a MRE
I encounter the following exception :
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.MyTest': Unsatisfied dependency ...
1
vote
1
answer
68
views
Spring MVC Disable request time-out for specific endpoint
Is it possible to disable the request time-out for a specific endpoint? Ihave the following:
@RestController
public class Controller {
...
@PostMapping(value = "/.../endpoint", ...