r/SpringBoot • u/Rich_Personality_153 • May 09 '26
Discussion [Showcase] I built a Java 25 library for "Auditable LLM Extraction." Every field is linked to exact page/line citations.
r/SpringBoot • u/Rich_Personality_153 • May 09 '26
r/SpringBoot • u/Old_Treat_5596 • May 08 '26
Hey I want to build a Banking management Fintech project for my resume I was thinking to build in the monolithic style but my senior said try to build in the Microservices way and currently I do not know that much about the Microservices..,I m building this project for the intern 2nd year student..
r/SpringBoot • u/jdev_soft • May 08 '26
Recently I jumped into a legacy project written in Grails and using Oracle database. We decided to migrate either to Spring Boot or Qurakus in order to modernize the backend stack.
The Oracle database is huge (TB) and one cannot simply port the entire db to a local container. However I want to have at least a small part or slice of the database on my local dev setup for specific tests.
For example, imagine that I am working on an Employee domain CRUD feature. I want to quickly spin up a "similar to prod" Oracle database setup for employees table and perform tests.
I have Testcontainers setup with oracle 23 slim image but I feel the live reloading is slow.
What is the best configuration for live reloading? Arconia Dev Services looks interesting.
My feeling is that Quarkus dev services is way far superior for dev local containers and live reload that improve the dev experience a lot.
Although I think migrate Grails to Spring Boot feels more natural than Grails to Quarkus the dev experience on Quarkus is better...
r/SpringBoot • u/Frosty-Pear-6080 • May 08 '26
Hi all
I'm working on my own spring boot library, like plug and play.
The library interally has entity and repository classes.
How can i register the entity and repository classes via autoconfig
Note I'm using spring v4
r/SpringBoot • u/rodolfo-mendes • May 08 '26
r/SpringBoot • u/ThemeHopeful7094 • May 07 '26
I run MoWave One, a productivity SaaS that recently crossed 25,000 users. Built initially on Postgres + Auth + Node.js Serverless Functions.
After 8 months and a growing user base, the serverless functions started feeling cramped — no proper domain modeling, awkward testing, no module boundaries, and one of them was literally a stub that I'd forgotten to finish (yep, our Stripe webhook).
Decided to migrate the backend to Spring Boot 3.4 + Java 21.
Stack:
- Spring Boot 3.4 + Java 21 LTS (Corretto)
- PostgreSQL via JDBC (HikariCP)
- Spring Security 6 validating JWTs via JWKS
- Flyway 10 for schema migrations
- Redis (Valkey) for webhook idempotency
- Modular monolith with Hexagonal Architecture
Some early lessons:
I'm 4 modules into a 16-module migration managed via Maven. Happy to answer questions about the architecture, the migration approach, or anything Spring-related.
r/SpringBoot • u/olivergierke • May 07 '26
r/SpringBoot • • May 07 '26

One aspect I found interesting in Spring Agent Flow is the attempt to model multi-agent orchestration using familiar Spring patterns instead of building everything around prompt chaining abstractions.
The project exposes practical concerns that usually get ignored in demos:
- agent coordination
- workflow state management
- task routing
- shared memory/context
- human approval flows
- observability in long-running workflows
Live demo:
https://huggingface.co/spaces/datallmhub/multi-agent-customer-ops
Repo:
https://github.com/datallmhub/spring-agent-flow
I’m curious how other teams are handling orchestration complexity once moving beyond single-agent systems.
r/SpringBoot • u/PuddingAutomatic5617 • May 07 '26
Most RAG implementations I see are just `PDF -> Embeddings -> Similarity Search -> Hope`. That doesn't work for production-grade microservices where data is structured, messy, and lives in JSON catalogs or Markdown docs.
I’ve been working on a **Spring Middleware AI** to treat RAG as a first-class citizen in the Spring ecosystem.
**Key features of this architecture:**
* **Deterministic Retrieval:** The system distinguishes between "I don't know" (no data found) and actual knowledge. No more LLM hallucinations when the context is missing.
* **Reactive ETL Pipelines:** Indexing and transforming ~8,000 data points (JSON/Markdown) into Qdrant in 80 seconds using a reactive stack.
* **Complex Query Planning:** It handles non-trivial questions like *"Which products appear in >1 catalog with 3+ positive reviews?"* by converting natural language into structured retrieval plans (filters + semantic search).
* **Agnostic Backend:** Works with **Ollama** for local inference or OpenAI for cloud, keeping the infrastructure declarative.
**The Tech Stack:**
* Java / Spring Boot (Reactive)
* Qdrant (Vector DB)
* Ollama / OpenAI
* JSON & Markdown sources
The goal is to move away from "chatting with docs" and move towards **AI-native infrastructure** that any enterprise can plug into their existing microservices in an afternoon.
I'd love to hear your thoughts on the ETL vs. Embedding trade-off. In my experience, the quality of the RAG depends 90% on how you transform the data before it hits the Vector DB.
Video: https://youtu.be/TrIWxLxs2nI?is=DnY0YZiPBhGwRD1a
**What do you guys think?**
r/SpringBoot • u/dev-dp24 • May 07 '26
I built a prototype for offline UPI payments using Bluetooth mesh networking.
The idea started with a simple question:
What happens when UPI works perfectly… except the internet doesn’t?
India has 600M+ UPI users, but connectivity still drops constantly:
So I tried building a system where payment packets can travel phone-to-phone over Bluetooth until any device in the chain gets internet access.
How it works:
A few security/design details I enjoyed working on:
Built the demo using:
Spring Boot 3, H2, Bluetooth mesh simulation, RSA-2048, AES-256-GCM, and a live dashboard showing packets hopping across 5 virtual devices.
This is obviously not production-ready UPI infrastructure 😄
But it was a fun systems/security experiment exploring:
Would love feedback on the protocol design or edge cases I may have missed.
https://www.linkedin.com/feed/update/urn:li:activity:7458085814191804417/
r/SpringBoot • u/rodolfo-mendes • May 07 '26
r/SpringBoot • u/Entire-Position9690 • May 06 '26
Spring Idempotency Kit is a production-ready library that ensures methods execute exactly once per unique key — preventing duplicate operations in distributed systems.
Problem it solves: Retries, timeouts, and concurrent requests cause duplicate executions. Double charges, repeated orders, webhook duplication. This library eliminates that.
All you do:
public PaymentResponse
The library handles:
Built by Atlancia Labs
r/SpringBoot • u/Frosty-Past-8902 • May 05 '26
I am currently learning backend development using Spring Boot and want to start learning Redis. I’m confused about the best approach—whether I should first watch tutorials to understand the concepts or directly start building a project and learn along the way. What is the most efficient way to learn Redis from a Spring Boot perspective ?
r/SpringBoot • u/NordCoderd • May 04 '26
Hi everyone, in this article I’m telling about Spring Boot Best Practices and ways how to detect violations of them in the project.
Article cover most of well-known best practices and provide a way for configuring Kotlin project to use them.
Set of tests/rules was made as Konsist rules with DSL wrapper and distributed as maven dependency for easy installation.
My case to build this library was to keep project clean with strict boundaries that will be enforced as test failings on local machine and CI to have faster feedback for newcomers and AI-generated code.
r/SpringBoot • u/Vivek_10452 • May 04 '26
Hey everyone,
I recently built and published my first Spring Boot starter library to Maven Central, and I’m looking for real feedback from developers on whether this approach is actually useful in real-world debugging.
GitHub repo:
https://github.com/Vivan-1045/smart-debug-starter
Maven Central dependency:
<dependency>
<groupId>io.github.vivan-1045</groupId>
<artifactId>smart-debug-spring-boot-starter</artifactId>
<version>1.0.1</version>
</dependency>
What it does
It’s a plug-and-play Spring Boot starter that tries to make debugging easier by converting noisy stack traces into structured, readable reports.
Instead of long framework-heavy logs, it focuses on:
---------------------------------------------------------------------
SMART DEBUG REPORT
---------------------------------------------------------------------
Root Cause: RuntimeException
Message: Service layer failed
Location: UserService.java:13
Flow:
-> TestController.test4(TestController.java:46)
-> UserService.getUser(UserService.java:15)
-> UserRepo.getUserData(UserRepo.java:7)
Exception Chain:
RuntimeException → StringIndexOutOfBoundsException
Suggestions:
Check index bounds before accessing string.
---------------------------------------------------------------------
This is my first library published to Maven Central, so I’m mainly trying to validate the idea with real developers rather than push a product.
Thanks for reading.
r/SpringBoot • u/PalpitationOk839 • May 04 '26
r/SpringBoot • u/Huge_Road_9223 • May 03 '26
First, I have 35 yoe overall. I have been doing Java for a long time, since version 3. I have been using Spring and SpringBoot since 2007 (18 yoe) and creating secured RESTful services. It was mostly in STS (Spring Tool Suite) which as you know is Eclipse. I switched to IntelliJ about 2.5 years ago because of a contract role, and that is what they used.
This contract role I had, they use GitHub as a repo which is fine, and they were using testing CoPilot and asked people to comment on it, to see what the issues were, good and bad. Then we all know that Microsoft changed to pay by token, and that is the only plan they have. I believe this will increase the cost a lot, but I couldn't tell you how much!
Anyway, That position has come to an end after 2.5 years, and a new company I may be interviewing with is using Claude Code. They want someone who can use Claude Code, and review any code generated by it, which I can do. I obviously can code without the use of AI since I have been doing it my whole career.
I've looked at ONE YT video, which showed how to use IntelliJ to create an app, and it was very impressive. One of the things done in the video was to create entities/repositories based on a table in the database. Ok, that's great, but I was doing that with OSS JBoss Tools 10 years ago. I also saw how Claude Code generated both Swagger and OpenAI documentation for the API's. I think there are already other non-AI tools that can do that also. They also generated Postman tests for the API's as well, and I am sure there are other tools around that can do the same thing, or there could be.
So, when Claude Code did these things I saw the massive amount of tokens being generated. I posted in the /ClaudeCode and /ClaudeAI sub-reddits, and it seems that their users are die-hard fanatics of the tool, and do not accept any skepticism of Claude Code or AI in general. IMHO, they have really drunk the kool-aid, and think that if I don't learn it and use it, then I'll be left behind and unable to get a job. I think that's a little extreme.
What I DID find out was that if I create my own account on Claude Code, I have to pay! Since, I am unemployed, I didn't know if I did want to pay the $20/month for it. From other resources across the internet the $20/month is a joke, and the tokens allowed can be used in 4 hours of heavy coding. I also found out that the $20/month is WAY BETTER than paying per API token which would add up very quickly.
Yes, I am a skeptic of AI, IMHO (which means nothing), I think we are in an AI bubble. If Claude Code ALSO changes to pay by token ONLY, then it will drive the costs up. It has been speculated that ALL AI companies will eventually go this way, driving up costs.
But just because I am a skeptic of AI, I was also a skeptic of Hibernate, SpringBoot, Lombok, I never liked these to begin with but learned how to use them anyway. I have been learning new technologies for years, and have no problem learning how to use Claude Code.
So, the question to the folks here is: How many of you have used Claude Code or any API to help you code your Spring Boot apps, and was it within IntelliJ, or something else? I'm interested to hear your experiences with it, the good and the bad. Did you create new apps with it as a greenfield application? Did you use it to fix existing applications?
Thanks for putting up with the long post.
Thoughts?
r/SpringBoot • u/Venumadhavamule • May 04 '26
Been integrating LLMs into Spring Boot projects using Spring AI and kept hitting the same problem. The moment you need more than one provider, every layer of your code starts knowing too much. Different client beans, different request shapes, different streaming implementations, different error handling per provider. And zero graceful handling when one goes down mid-production.
I built LLMate around a single SPI interface called LlmProviderAdapter. Every provider is just a u/Component that implements it. A central LlmGateway orchestrates pre-filters, routing, retry, and post-filters in an ordered pipeline. Resilience4j handles the circuit breaking and fallback chain silently so the calling code never needs to care which provider actually served the request.
Model selection is alias-based at the API level:
{"model": "smart", "messages": [...
"smart", "fast", "local" resolve through a five-step router: LiteLLM shorthand, named alias, explicit provider/model prefix, fallback chain, global default. Switching providers is a config change.
Covers 16 providers currently. Same unified endpoint handles chat, SSE streaming, embeddings, image generation, TTS, transcription, moderation, and a PGVector RAG pipeline.

GitHub: https://github.com/Venumadhavmule/LLMate
Curious how others are structuring multi-provider LLM integrations in Spring Boot right now.
r/SpringBoot • u/Alert_Ad4540 • May 03 '26
I’ve been working on a small open-source project called Guardrail4J.
It’s a Spring Boot starter that lets you annotate LLM-calling methods with u/LLMGuarded and add basic cost/usage guardrails.
Current MVP:
- Spring AOP interception
- dynamic user/tenant extraction with SpEL
- estimated cost tracking by provider, model, user, tenant, and feature
- ALLOW / WARN / BLOCK / FALLBACK decisions
- usage summary endpoint
- demo app and docs
It’s still early and not production-ready. Storage is in-memory, costs are estimated, and fallback is currently a decision/log signal.
Would this be useful in a real Spring Boot app? Would you prefer annotations or a more config-based approach?
Repo:
r/SpringBoot • u/rodolfo-mendes • May 03 '26
r/SpringBoot • u/ChanceAuthor1727 • May 02 '26
I am really confused about where should i use Bidirectional mapping in JPA. I feel like i have to navigated both sides in each and eevery relationship. So that means i should always use Bi-directional mapping?
r/SpringBoot • u/AdVisible6484 • May 02 '26
So the Owning side is the Problem enitity and the inverse is the Tags Entity.
(name = "problem")
public class Problem {
String problemCode
;
(strategy = GenerationType.
IDENTITY
)
Long problemId
;
String problemName
;
String contest
;
String platform
;
(EnumType.
STRING
)
Status status
;
/*
* when user sends in the payload the tags are going to be a list of strings containing the tag name
* it will throw an error for tagset cuz it expects a set of tags object.
* So through this field, set of strings we can it the input
* process it in the problem service layer by calling the agservice methos that convert the set of strings
* to set of Tags object
* After which we set the tagset value to the returned value, to ensure consistent type handling.
* it is marked as because: we dont want to create any field in the database for this strings set. it is used just for the
* input processing purpose.*/
Set<String> tags
;
String url
;
String notes
;
/*
* JsonIgnore cuz we don't want to see the whole tags set in the response output at all.*/
(name="problem_tag"
,
joinColumns = (name = "problemId")
,
inverseJoinColumns = u/JoinColumn(name = "tagId")
)
Set<Tags> tagSet = new HashSet<>()
;
}
This is the tags entity.
(name="tags")
public class Tags {
(strategy = GenerationType.
IDENTITY
)
Long tagId
;
(unique = true
,
nullable = false)
String tagName
;
u/ManyToMany(mappedBy = "tagSet")
Set<Problem> problemSet = new HashSet<>()
;
}
The controller for the /GET problem is
public ResponseEntity<List<Problem>> getAllProblems(@RequestParam(required = false) String status
,
(required = false) String platform
,
u/RequestParam(required = false) List<String> tags)
{
List<Problem> problems = problemService.getAllProblems(status
,
platform
,
tags)
;
return new ResponseEntity<>(problems
,
HttpStatus.
OK
)
;
}
So in the db it is creating a joined table as "problem_tag". I dont want to use JPA Specifications as of yet.
I want to learn how to implement it such that I am querying just the filtered problem list using the joined table... instead of querying the whole thing first and then filtering.
As I read in the documentation that for many-to-many this is how we represent it in db, I dont understand how that join table is getting used.
I am still learning spring boot, so I am focusing on these things.
Thank you for your help. I will really appreaciate your direction and help.
r/SpringBoot • u/rodolfo-mendes • May 02 '26
r/SpringBoot • u/NeuroByte_X • May 01 '26
Hey I recently got an internship
The company uses java Spring boot
I'm from python background
So please suggest any 5-10hours full video of Spring boot which is relevant today also....
r/SpringBoot • u/delusionalbreaker • May 01 '26
Hey everyone
Currently im a beginner in springboot ecosystem i understand the MVC architecture and i have made a couple of projects in java using springboot, not the basic CRUD ones but complex projects (for me they were complex) like a e-commerce backend and a blogging application backend. Projects like these, but all of these are monolithic projects
Now i want to level up from monolithic projects to microservices, so my question is what do i have to learn to level up
I heard there are many technologies which are used in microservices that are used for inter service communications, service discovery, fault tolerance, circuit breaker, api gateway and loads of things
So if you can guide me on how to start with microservices would really help me.
Thanks
Note:- Sorry for any grammetical or spelling errors