Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

Filter by
Sorted by
Tagged with
4 votes
1 answer
157 views

API having flow - normal flow along with background poller(it also involves events which is not shown here)

We have an API in which we call external service with a tracking id.This first part of the API workflow makes an entry to the DB as SUBMITTED after the call to first external API say /E1 finishes and ...
yoda's user avatar
  • 277
0 votes
0 answers
36 views

Spring 7 RouterFunctions and BeanRegistrarDsl med Kotlin

I am looking for a good way to structure my Kotlin code using Spring Boot 4 and Spring 7. The new features I am using are: Reflectionless dependency injection via ...
Alexander Petrov's user avatar
1 vote
3 answers
144 views

Is this exception handling missing anything?

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

Code to add order orderitems and payment details

This is order, orderitems and payment linked by foreign key. Controller: ...
yoda's user avatar
  • 277
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
  • 277
1 vote
0 answers
46 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
3 votes
0 answers
78 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
  • 131
1 vote
1 answer
107 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
109 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
144 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
456 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
5 votes
1 answer
95 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
1 vote
1 answer
94 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
  • 739
2 votes
2 answers
564 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

15 30 50 per page
1
2 3 4 5
16
Morty Proxy This is a proxified and sanitized view of the page, visit original site.