Skip to main content

Questions tagged [spring]

The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

2 votes
0 answers
62 views

Bridging the gap between Spring's JdbcTemplate and Kotlin coroutines

I'm learning about Kotlin coroutines. I'm wondering if I can use them to increase the throughput of my spring-boot application which is currently very heavily dependent on jdbc connections, without ...
Jake's user avatar
  • 121
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 ...
Andrew Bailey's user avatar
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 <...
theProgrammer's user avatar
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 ...
user287004's user avatar
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 ...
RudraSama's user avatar
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 ...
Fabio Piunti's user avatar
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,...
yaroslav96's user avatar
5 votes
1 answer
88 views

Calculating a weight from a tag using kotlin

I'm not really happy with the below solution. Background is that I am receiving results from a graphql query that includes tags, and I want to translate these tags into weights and save those results ...
isic5's user avatar
  • 95
0 votes
0 answers
34 views

Spring Data JPA OneToMany relationship

I have an Web Application where I have to develop functionality like: I have Entities as: ...
Arshad Ali's user avatar
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 ...
Sergey's user avatar
  • 679
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 ...
Brandon Bryan's user avatar
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 ...
Joe's user avatar
  • 23
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 ...
Kerem Tazedal's user avatar
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 ...
Sergey's user avatar
  • 679
0 votes
1 answer
46 views

Spring Boot old versions of endpoint

I have 5 versions of some endpoint. Only V4 and V5 are used currently on the frontend side. What should I do with the V1, V2 and V3 versions? Should I remove them when are not used anywhere? ...
Matelutex's user avatar
  • 133

15 30 50 per page
1
2 3 4 5
16