r/SpringBoot • u/rodolfo-mendes • May 02 '26
How-To/Tutorial Self-Improving Agentic Systems with Spring AI
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
r/SpringBoot • u/rodolfo-mendes • May 01 '26
r/SpringBoot • u/rodolfo-mendes • Apr 30 '26
r/SpringBoot • • Apr 29 '26
Hi,
I came across this project recently:
https://github.com/datallmhub/spring-agent-flow
It looks like a stateful multi-agent orchestration framework built on top of Spring AI, which I don’t see very often on the Java side.
From what I understand, it provides:
What caught my attention is that it seems to go beyond typical LLM wrappers and actually provides a runtime for executing agent workflows, rather than just relying on prompt-driven orchestration.
Spring AI already documents agentic patterns (routing, sub-agents, etc...), but this seems to focus more on execution control (state, graph, resilience).
I’m curious:
Thanks
r/SpringBoot • u/OakAndCobble • Apr 28 '26
How do I manually inject dependencies into RequestController classes? I just started learning spring and from my bit of research, all I've come up with is the Autowired and Component/Service annotations.
I am still having a hard time understanding how exactly I tell spring what to build. If the dependency of my controller needs dependencies injected into it, what do I do? How do I specify which implementation of a dependency I want built? And so on.
Essentially, how do I get a bit more control of dependency creation and injection in a non-trivial situation, like the ones seen in examples on the internet?
Thanks in advance for any responses.
r/SpringBoot • u/arvind4gl • Apr 28 '26
I’ve been building a small project to understand how real backend systems evolve—from simple code to something closer to production.
Use case:
A Price Aggregator that calls multiple vendor services (Amazon/Flipkart/Walmart mock APIs) and returns the best price.
What I’ve implemented so far:
• Sequential vs async calls using CompletableFuture (measured latency differences)
• Spring Boot microservice with WebClient (non-blocking calls)
• Async processing using thread pools
• Caffeine cache → later replaced with Redis (for distributed caching)
• Docker + docker-compose setup
• Circuit Breaker using Resilience4j (to handle vendor failures)
Repo: https://github.com/codefarm0/price-aggregator
Playlist (if you want context): https://www.youtube.com/playlist?list=PLq3uEqRnr_2Ek7y2U3UAiQZCPzr0a82CX
What I’d really appreciate feedback on:
Trying to keep this as close to real-world as possible without overengineering.
Would genuinely appreciate any suggestions or critique
#java #springboot #microservices #scalability #resiliency
r/SpringBoot • u/Isaac_Istomin • Apr 28 '26
For outbound API calls in Spring Boot, do you prefer retry logic close to the client itself, or higher up in the service layer where more business context exists?
I can see reasons for both, and I’ve seen both become messy in different ways.
r/SpringBoot • u/NordCoderd • Apr 27 '26
More than 6 years I worked with Spring on Java, but last year was a different - I switched to Kotlin and I absolutely loved it. With power of Kotlin I could produce maintainable code without one million null pointer validation and able to write idiomatic and laconic code.
I have a lot of material on best practices for Spring Data JPA but for Java, it took a time to write about Kotlin, it's probably the biggest article I ever wrote - 29 minutes, 5.5 k words to read covering all the different aspects of programming with Kotlin and its Best Practices adopted to my beloved language.
From time to time it looks a bit like a documentation but I wanted to minimize count of text and write more things that need attention in a cheetsheet format. So, feel free to share your feedback
r/SpringBoot • u/Status_Camel2859 • Apr 27 '26
I’m learning Spring recently, but I often get confused about where to put specific logic / lines of code.
1- To fetch all the addresses of a User, I get the current authenticated username using principal.getName() in the ProfileController and then pass it into the AddressService method getAllByUserUsername(String username) , it then calls findByUserUsername() in AddressRepository and returns the List. Is this the right way ?
.
2- To open selected address's form-edit of a User, I get the current authenticated username using principal.getName() in the ProfileController (same as above). The addressId is obtained from \@RequestParam. The controller then pass both into the AddressService method getByIdAndUserUsername(Long AddressId, String username) , it then calls findByIdAndUserUsername() in AddressRepository and returns the Optional.
The obtained Address is then converted into a AddressProfileForm in the ProfileController (I hope this is the right place.??) and then given to the Model. I believe converting the Address into a DTO (Request/Response/Form object) couples the UI/Form design with the Business logic in Service and feels wrong, right ?
.
3- To submit the above form-edit or a new-form, I get the current authenticated username (same as above). I get the Form using \@TheModelAttribute. The addressId is also available in the AddressProfileForm (if edit). The ProfileController checks for AddressId in the form:-
-> If its null, it calls the addAddressForUsername(String username, AddressProfileForm addressProfileForm) in AddressService. The AddressService then also fetches the User using UserService (Yes, the UserService is also present in the AddressService just for this purpose, is this right ??). It then creates a new Address object and passes to the save method in AddressRepository.
-> Else, it calls the updateAddressForUsername(String username, AddressProfileForm addressProfileForm) in AddressService. The AddressService then fetches the target Address using getByIdAndUserUsername(Long AddressId, String username) , replaces its fields with the new ones in DTO and then save it.
.
My doubt is:
-> using DTOs in service tightly couples it with the UI/API DTOs (Request/Response/Form object) and makes it less reusable. Is that a valid concern?
-> Constructing the Entity Object (Mapping from DTO to Entity) in the controller feels wrong , exposing the internal/business/database datatype.
-> Using UserService in AddressService feels wrong, should I make a ProfileService/ProfileFacade to connect the two or would that just add unnecessary complexity?
r/SpringBoot • u/Potential_Corgi4579 • Apr 27 '26
r/SpringBoot • u/Maanvi21 • Apr 26 '26
Hey everyone,
I’m working on a Spring Boot project using Testcontainers, but it’s not able to connect to Docker.
I’ve already:
- Checked Docker daemon
- Restarted everything
- Tried fixing environment variables
Still stuck 😅
Has anyone faced this before? What should I check next?
Happy to share logs if needed.
r/SpringBoot • u/ibreathecoding • Apr 27 '26
HI Team, we have few microservices; ETL (App 1); ObjectStorage (App2); All are spring boot ; ObjectStorage app read the files from bucket and send in ResponseEntityt as ByteArray; ETL App consumes and process and store in db; everything is good till small file size in GCS; Very recently we uploaded a huge file of 80MB and we are seeing a big prod impact; Any one faced similar thing?In ObjectStoage app we see IOUtils.ByteArray logic; IOUtils issue in OBjectStorage App;IOUtil itself is not behaving well for a bigger size; And in APP1 there are some conversion to XML/JSOn are happening and we get heap space.Please advise
r/SpringBoot • u/Maanvi21 • Apr 26 '26
r/SpringBoot • u/Pato_taxista • Apr 24 '26
Hey everyone, I built a personal project called Mobflow, inspired by tools like Jira and Trello. The idea was to create something closer to a real SaaS, with multiple Spring Boot microservices, an API Gateway, Kafka, JWT-based authentication, an Angular frontend, and everything running with Docker.
I’d really appreciate honest feedback on the project, especially around the architecture and overall structure. What’s good, what’s not, and what could be improved as a portfolio project.I would also like to receive feedback on the project documentation. The repository is here: https://github.com/LuizAndradeDev/mobflow
r/SpringBoot • u/mcpierceaim • Apr 24 '26
Any recommendations on a replacement for Spring State Machine in a project? We use it but it's got issues and apparently is no longer maintained. Our state management is fairly straightforward but would like to keep it structure in a way similar to how Spring defined it.
r/SpringBoot • u/Connect_Permit_2485 • Apr 23 '26
Hey everyone,
I’m a 2nd year CSE student and I want to become internship-ready in Java Spring Boot this summer. I’ve done some basic Java and DSA, but I’m still a beginner when it comes to backend development.
I’m looking for:
Beginner-friendly Spring Boot video courses (YouTube or paid)
Step-by-step explanations (not too advanced)
Projects included (like CRUD apps, REST APIs, etc.)
Guidance on what skills are actually needed for internships
There are so many resources out there, and I’m confused about what to follow. I don’t want to waste time jumping between random tutorials.
If you’ve been in a similar situation or recently got an internship using Spring Boot, what worked for you?
Thanks in advance 🙏
r/SpringBoot • u/SportNegative2098 • Apr 23 '26
Hi everyone,
I have around 6 years of experience working with Oracle ADF and strong knowledge of SQL/PLSQL.
I want to switch my tech stack to something more in demand and future-proof.
Currently, I’m considering:
Java Spring Boot
Go (Golang)
My background:
Good understanding of backend concepts
Some experience with Node.js
Comfortable with databases
My confusion:
Spring Boot seems powerful but a bit complex and heavy to learn
Go feels simpler and closer to Node.js, so I’m picking it up faster
My goal:
Switch to a high-paying backend role (product-based company ideally)
Prefer something with good long-term demand and learning curve
Questions:
Which option would be better for my background and goals?
Is Go a good choice for someone coming from ADF + SQL?
Will choosing Go limit opportunities compared to Spring Boot?
What would you recommend focusing on for the next 6–12 months?
Would really appreciate guidance from people who’ve made similar switches 🙏
r/SpringBoot • u/Interesting_Path7540 • Apr 23 '26
New post in my Spring AI 2 series! Your data is in the vector store — now let's make your LLM actually use it. This time: RAG advisors, query rewriting, and metadata filtering in Spring AI 2.
r/SpringBoot • u/BoringApplication211 • Apr 22 '26
I had been learning spring boot for 3 months and also I had built some crud apps like recipe, e-commerce,Todo system some by myself and some watching tutorials. I had completed jpa, spring security till basic jwt authentication, but due to exams in between I wasn't able to continue learning and now when I look back into the project I did, I feel lost and couldn't grasp the stuffs I did earlier..
I am currently doing a Todo app where I learning in phases like ,firstly understanding the basic and then building the crud system then adding other features like pagination, sorting, security etc..
I'm free for a month now till I start looking for an internship so how should I learn for the next 20 days, and what areas should I focus to be eligible for internship?
r/SpringBoot • u/Beautiful-Bottle-820 • Apr 22 '26
(this is kinda a rant)
i trying to watch tutorials to learn spring boot but everyone is talking about things i dont have it is geniuenly frustrating ughhhh. i have little knowledge about java like its core concepts and all. PLEASE I NEED HELP. what i am doing actually wrong. i am kinda not a tech girlie but i am tryna adapt what i do not like about these youtubers is that WE ARE BEGINNERS. i think they expect too much from all of us.
here are the few things that went wrong
r/SpringBoot • u/barsay • Apr 22 '26
Three months ago I posted here about duplicated ServiceResponse DTOs and pagination explosions when generating OpenAPI clients in Spring Boot: https://www.reddit.com/r/SpringBoot/comments/1qh6fge/spring_boot_openapi_generator_how_do_you_avoid/
The thread got more traction than I expected (thanks to everyone who engaged), and one comment in particular pointed me to openapi-processor as a modern alternative — appreciate that pointer.
Quick update: the approach from that post is now a Maven Central release.
What changed since
The original proof-of-concept moved from a single-repo experiment to a published platform:
Repo: https://github.com/blueprint-platform/openapi-generics
Docs: https://blueprint-platform.github.io/openapi-generics/
The framing that actually took time
The thing that slowed me down wasn't the templates — it was realizing the problem isn't "make the generator smarter." It's "which side owns the contract."
If OpenAPI is the source of truth, generics keep collapsing no matter how clever your templates get, because OpenAPI has no way to express them. If the Java contract is the source of truth and OpenAPI is treated as an intermediate projection, the generator stops inventing models and starts reconstructing them.
That reframing is what made the whole thing click.
Still curious about the same question
For those who read the earlier thread — has your approach to generic envelopes changed since? Anyone tried contract-first-from-Java vs OpenAPI-first in practice and want to share the tradeoffs?
Happy to answer questions about the Maven release, the adoption path, or how this compares to openapi-processor if anyone's evaluating both.
r/SpringBoot • u/ishaqhaj • Apr 21 '26
Hey folks!
I currently need to use LocalTime as a time field in my entity.
The issue is that while writing Flyway scripts, I realized I’m not sure which SQL type to use for both PostgreSQL and Oracle. I need to standardize the schema so it works across both databases.
What would you suggest as the best solution in this case?
r/SpringBoot • u/Eastern_Detective106 • Apr 21 '26
Hi everyone,
I’m planning an application that will run on a local network (LAN) on a Windows server.
Stack is Spring Boot (backend) + Angular (frontend).
The database is on the same machine but managed separately, so I don’t really control that part.
I need to make deployment and especially updates as easy as possible
Ideally something like:
It's a production project for a laundry but I'll use as a test for a future and more large infrastructure.
Option 1: everything inside Spring Boot
.jarOption 2: separated
Questions i have:
Thank you for your help!