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.

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

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
1 vote
3 answers
158 views

This is the code. I'm uncertain about the last block. ...
yoda's user avatar
  • 277
5 votes
3 answers
1k views

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
3 votes
0 answers
85 views

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
124 views

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
4 votes
2 answers
487 views

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
109 views

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
1 answer
77 views

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
2 votes
2 answers
204 views

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
  • 739
1 vote
1 answer
181 views

While migrating a Spring application to Spring Batch, I encountered a scenario where I need to process chunks of records from the database and invoke a stored procedure for each chunk. However, each ...
Vasanth's user avatar
  • 173
4 votes
1 answer
126 views

I am new to the FastApi world. Can somebody review my below Fast API design? It is working but doesn't follow ...
garg10may's user avatar
  • 244
1 vote
0 answers
112 views

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 ...
J.Olufsen's user avatar
  • 151
2 votes
2 answers
96 views

I have designed and coded REST APIs to move the toy robot in 5*5 grid. Please let me know any feedback on improvements, etc Complete Code here: https://github.com/pkkht/RobotRESTApp ...
Hariharan's user avatar
3 votes
1 answer
443 views

I built RESTFUL api for a blog using java and spring boot(without a frontend). What it does the code manages all the http methods on a post inside the blog and comments on that post. the post consists ...
Ellie's user avatar
  • 587
2 votes
1 answer
184 views

I am new to spring boot and wanted to make a simple application with JWT authentication. There is one problem with the response having 401 status when it should have 403 but otherwise everything seems ...
Newbee's user avatar
  • 43
2 votes
1 answer
84 views

I have this flow for registering a user. They send an empty user account no to get a temp account no which then they use for verifying the OTP by email and phone. Both done they should register ...
rest_easy's user avatar
0 votes
1 answer
250 views

I have recently been exploring React and Spring Boot, and I would greatly appreciate your feedback on a practice application that I have developed. The application consists of a Spring Boot backend ...
thebluepandabear's user avatar
4 votes
1 answer
160 views

Here's a piece of code from codebase I maintain/contribute to. It is a Spring REST controller, which exposes an endpoint to create user question. The question consists of title, description and ...
Sergey's user avatar
  • 739
0 votes
1 answer
166 views

I call another microservice to check whether there is any holiday on any particular day. This will then add a comment in the db if the rest call doesn't fetch an empty list(a list of size 1). Here is ...
diaop's user avatar
  • 9
3 votes
2 answers
157 views

I'm writing a simple online shop using spring boot, for learning purposes. Right now I have purchasing-service and a product-service. The purchasing-service makes requests to the product-service via ...
Eoin's user avatar
  • 263
0 votes
2 answers
117 views

For readability sake, is it better to use optionals or write my code in an iterative manner? Here's a route I'm working on, does this look readable do you? ...
user9132502's user avatar
1 vote
1 answer
91 views

I want to load JSON data from a link at the beginning of an application. I need to be a little bit about clear the following code. And also want to ask about another opinions that what could be the ...
Neslihan Bozer's user avatar
1 vote
2 answers
1k views

I used factory design pattern to identify the service according to the enum that comes from the api uri as request param. Everything seems okay according to me but cannot be sure if I used it right. <...
Abdu Muhammadal's user avatar
3 votes
1 answer
136 views

I have a Spring MVC controller but I'm not sure that it is a good or bad design. As far as I know, api versioning is missing but apart from that I implemented Swagger for documentation and added ...
Burak's user avatar
  • 31
1 vote
1 answer
123 views

I'm just getting to know the possibilities of Kotlin and mongoDB. I am writing a method that returns the name of the street after the ID. Everything works, but I find it quite sloppy. Empty String ...
AdamK's user avatar
  • 35

1
2 3 4 5