Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
3 answers
128 views

Is this exception handling missing anything?

This is the code. I'm uncertain about the last block. ...
yoda's user avatar
  • 233
2 votes
1 answer
96 views

Code to add order orderitems and payment details

This is order, orderitems and payment linked by foreign key. Controller: ...
yoda's user avatar
  • 233
5 votes
3 answers
1k views

Method using double for currency amounts

I'm wary of using amount as double. This API also has to maintain backward compatibility. Would appreciate for any comments on this method. ...
yoda's user avatar
  • 233
1 vote
0 answers
39 views

Spring AI 1.0.0 configuration setup with custom bean definitions

I've recently shifted from SpringAI M5 to 1.0.0 which is a major change and just wondering if there is a better way to organise SpringAI configurations. I'm using Azure OpenAI based connection along ...
saran3h's user avatar
  • 255
1 vote
1 answer
104 views

Find scheduling conflicts within a timetable

Following task: I'm given a timetable containing several classes that have a weekday, as well as an hour at which they start and end. Also, they have a room assigned and are part of a curriculum for ...
Andrew Bailey's user avatar
1 vote
1 answer
105 views

Spring Boot Bank Application with Secure Transactions and Account Management

I need some insights on my bank application written with Spring Boot. Specifically on the transactions aspect and anything I missed out. TransactionEntity.java <...
theProgrammer's user avatar
0 votes
2 answers
136 views

[Spring Boot][REST] Design Pattern Best Practice (Single Entity, multiple business logic implementations)

I have some problems regarding best-practice design between data source layer(Entity), domain layer(Service) and presentation layer (controller): I have one entity with a type field in the database to ...
user287004's user avatar
4 votes
2 answers
451 views

Springboot - Authentication Service

I am developing a Web application using Spring boot (I am a beginner). How can I make my code better? This code is from "AuthenticationService.java". I first made an interface for defining ...
RudraSama's user avatar
  • 181
1 vote
1 answer
90 views

Rate limiting WebFilter

It's a simple WebFilter for limiting RPS from one of my projects. There's only one OOB BucketResolver that has one shared bucket ...
Sergey's user avatar
  • 729
2 votes
2 answers
558 views

Using java streams to handle incoming API requests

I am using the java stream API to handle incoming requests my employee service. A few questions I had are: Does using the streams API in the way I'm using it below affect the performance of the ...
Brandon Bryan's user avatar
2 votes
1 answer
64 views

Any possible issues with my approach to Access Management where I'm associating the list of Departments with the User class?

I have a spring boot project with JWT being used for Spring Security. I want to implement Access Management in my project and I'm using this approach. In my project, whenever a user is created, a list ...
Joe's user avatar
  • 23
4 votes
2 answers
131 views

Choosing between field injections and constructor injections for modular Java applications with Spring Boot

I'm six months into a Java training program and have developed a Spring Boot application, adhering to Java's separation of concerns principle. I've organized my application with distinct sections for ...
Kerem Tazedal's user avatar
2 votes
2 answers
168 views

Simple authentication server

Here's a simple authentication server. It's pretty basic but has the core functionality of sign-up and log-in handling. Your best bet is to simply run the ...
Sergey's user avatar
  • 729
1 vote
1 answer
430 views

Inserting large number of rows into database with Spring boot

I need to insert many million rows + many GB of data into a database for a project that uses Spring boot. I recreated a minimal example with a one to many relationship and am trying to find the ...
Pux's user avatar
  • 155
0 votes
2 answers
69 views

How to find a more effective way to load a file and compare in the service

I have a malware detection system that includes a subsystem responsible for IBAN checks. Initially, this subsystem needs to load and parse data from a specific URL. Subsequently, it checks whether the ...
Nesly's user avatar
  • 17

15 30 50 per page
1
2 3 4 5
15