close
Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
4 replies
63 views

My application has the following properties employeeEngine.callLegacy=true employeeEngine.callNewApi=true I want to make it possible to call either only the legacy service, or the new api endpoint (...
Blue_Elephant's user avatar
0 votes
0 answers
33 views

Baseline Situation I've got a spring boot application that uses jpa, hibernate und a mysql8 database. At some points the application has to persist a large number of small entities where the database ...
andr's user avatar
  • 31
1 vote
0 answers
42 views

Problem I'm trying to set a custom hex color (#00458D) on Excel header cells using Apache POI in a Spring Boot project. The only approach that works without throwing an error is using an indexed color:...
Sandesh's user avatar
  • 11
0 votes
0 answers
51 views

I'm working on a spring boot project utilizing jpa and hibernate with a mysql database. Recently I did some refactoring and changed a OneToMany collection mapping, that was unidirectionally mapped by ...
andr's user avatar
  • 31
3 votes
2 answers
152 views

I am trying to send email using Spring Boot with Gmail SMTP, but I am getting the following exception: org.springframework.mail.MailSendException: Mail server connection failed. Failed messages: ...
Omkar Thakur's user avatar
-4 votes
0 answers
156 views

I want this encryptor to return the same value for the same input. It makes sense for card numbers. Otherwise, you wouldn't be able to enforce the UNIQUE constraint (and would lose the ability to ...
Sergey Zolotarev's user avatar
-1 votes
1 answer
51 views

How do you assert on a JSON list of objects with MockMvcTester? I want to cleanly map it to List<MyDto> and assert on that list. import com.example.em_card_service.data.dto.response....
Sergey Zolotarev's user avatar
Best practices
0 votes
1 replies
107 views

user.name has a UNIQUE constraint on the DB (PG). I catch DataIntegrityViolationException in my global handler: @ExceptionHandler(DataIntegrityViolationException.class) public ResponseEntity&...
Sergey Zolotarev's user avatar
Best practices
0 votes
3 replies
117 views

I recently joined a company project built using Spring Boot 2.x. The project exposes REST APIs, but instead of modern annotations like: @RestController @PostMapping the code uses older style patterns ...
BHARATH VAMSI MANIKANTA REDDY 's user avatar
Advice
0 votes
1 replies
85 views

My goal is to handle a custom exception. I want to keep the default error response shape (properties) + error message. ProblemDetail consists of different properties. It's because I want to have the ...
Sergey Zolotarev's user avatar
Advice
0 votes
0 replies
39 views

I would like to know if keyset pagination is intended to be used in an API. The current implementation for it is not conducive to being used across multiple requests. For reference, this is how we are ...
Maxi's user avatar
  • 1
Best practices
1 vote
1 replies
74 views

Is this how I am expected to map "authorization server's down" to 503? @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http ....
Sergey Zolotarev's user avatar
Best practices
1 vote
1 replies
72 views

I’m building a Java Spring Boot system that needs to integrate dynamically with multiple external institutions (banks/payment providers/etc.). Each institution can have: Different protocol types (...
Yara Abd's user avatar
Advice
0 votes
2 replies
89 views

I've been making a course of Spring boot fundamentals, with spring 4.0.6 and java 25, but I have some errors with the dependency, I changed the version for 3.5.0, I changed the dependency for another, ...
Alan Erick Aguilar's user avatar
Advice
0 votes
2 replies
118 views

How do I create the initial admin user in my Spring Boot 4 application? At first, my signup endpoint simply accepted an array of roles in the DTO. But, I concluded, it's a bad idea. Then, I ...
Sergey Zolotarev's user avatar

15 30 50 per page
1
2 3 4 5
10026