All Questions
219 questions
0
votes
1
answer
98
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 ...
0
votes
1
answer
88
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
<...
1
vote
1
answer
88
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 ...
5
votes
2
answers
422
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 ...
1
vote
0
answers
51
views
Java multithreading with Spring JPA
I have to improve a process that is currently sequential, and i wanna make it multi-thread.
This process uses Spring JPA, with spring boot 2 and java 17.
I would like to have a feedback on the ...
0
votes
0
answers
86
views
Securing microservices with Spring Security JWT
I would like to build a RESTful microservices architecture where each microservice acts as a resource server. Additionally, there will be an authorization server responsible only for user registration,...
1
vote
1
answer
77
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 ...
2
votes
2
answers
536
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 ...
2
votes
1
answer
57
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 ...
4
votes
2
answers
117
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 ...
2
votes
2
answers
121
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 ...
1
vote
1
answer
423
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 ...
0
votes
2
answers
60
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 ...
1
vote
0
answers
79
views
Todo application using Spring Boot 3, Dockerized Postgres, Java 17, Maven
I'd like to have code review for backend of todo app.
It has 2 main functionalities:
Authentication and authorization using Spring Security and JWT token.
CRUD for tasks
In particular I'd like to ...
1
vote
1
answer
378
views
About self validated Java POJOs
I am currently experimenting with self validating Java beans in order to avoid the creation of objects with invalid states, while keeping the validation knowledge inside the bean. The goals I have in ...