r/SpringBoot • u/paszeKongo • Apr 01 '26
How-To/Tutorial Aggregate Root + Spring Modulith — how to separate JPA entity from domain object
r/SpringBoot • u/paszeKongo • Apr 01 '26
r/SpringBoot • u/Thunderbolt104 • Apr 01 '26
I came across this simple Spring Boot guide and it looks pretty straightforward. Just push your code and it builds and deploys automatically across their decentralized nodes with dedicated CPU/RAM.
Has anyone here actually used decentralized infra for a Spring Boot app? I'm curious about the real-world performance or if there are any weird hurdles with the build process compared to others.
r/SpringBoot • u/Educational_Rent5977 • Apr 01 '26
r/SpringBoot • u/ishaqhaj • Apr 01 '26
Hey folks!
I recently joined a company and got assigned to a project built on a microservices architecture (around 6 services). The catch is: development started before the team had the Detailed Functional Specifications (DFS), so some parts were implemented without clear requirements.
One example: a notification service was built inside one microservice (MS X), basically copied from an older internal project. Now I’ve been tasked with refactoring the notification system to align with the DFS.
We’re using Camunda for business processes, and the idea is to notify task assignees when a task is created or completed.
My initial approach was to add a TaskListener to each task in the process (seems clean and straightforward). But here’s the problem:
Some tasks run and complete in parallel, and I’m not sure what’s the best way to handle/aggregate those events inside the listener.
At the same time, I’m facing another dilemma:
So I’m kind of stuck between:
Has anyone dealt with:
What would you do in this situation?
Thanks 🙏
r/SpringBoot • u/AdMean5788 • Mar 31 '26
I want to know how anyone approach difficult projects, so for context i m currently building a url shortener, there are different layers for caching and kafka for decoupling services so, currently I was looking at docs like how do different services connect with each other, configuration etc how anyone handle this , I don't know how to approach this , so took help of AI it build all files i understood all files asked all the terms , code parts which I don't understand again from AI , is this right part of learning or I m lacking something like researching more about the ways exploring different methods will get me more knowledge but will be time consuming. Need suggestions regarding what will be my approach regarding any kind of techs which is new to me or difficult projects
r/SpringBoot • u/noshadow09 • Mar 31 '26
Hi everyone,
I'm new to Spring Boot as well as Java (only studied OOPS and Design Patterns previously using it). Though, I've previously worked with backend frameworks like Node/Express and FastAPI, so I'm not completely new to backend development.
The issue is understanding how to actually start and structure a Spring Boot project.
I understand concepts behind Beans, Lifecycles, Components, Repositories, Controllers, JPA, Models, etc. But when it comes to creating my own classes, interfaces, and implementations, I get overwhelmed with all the syntax heavy interfaces and methods of Java and confused on where to begin.
When I follow tutorials, I can understand everything as I can relate concepts to other frameworks. But when I try to build something on my own, I get inundated.
That said, I'm not planning to give up. I'll keep experimenting and learning, but I feel like I need some direction or better mental model of how to approach building projects in Spring Boot.
Future plan, once I get comfortable, is to move toward building microservices using Spring Boot, integrating Kafka and so on.
LOOKING FORWARD TO GENUINE UNFILTERED ADVICE/GUIDANCE
r/SpringBoot • u/Interesting_Path7540 • Mar 31 '26
New post in my Spring AI 2 series! This time: Chat Memory. LLMs are stateless by design — how do we teach them to remember?
r/SpringBoot • u/ManningBooks • Mar 30 '26
Hi r/SpringBoot,
Posting with mod approval from Manning. We’ve just released a new book focused entirely on something most Spring Boot teams struggle with at some point: tests that start out helpful but slowly become a drag on development.
Testing Spring Boot Applications by Daniel Garnier-Moiroux
https://www.manning.com/books/testing-spring-boot-applications

If you’ve worked with SpringBootTest, MockMvc, or SpringExtension, You already know how powerful the testing tools are, and how easy it is to end up with slow builds, brittle tests, or setups that nobody wants to touch.
This book is written by a member of the Spring team, and it spends a lot of time on the why behind the tooling. Not just how to write a test, but what’s actually happening when the context loads, how slices work, when to use full integration tests, and when not to.
It also goes into things that tend to get messy in real projects:
The examples build up from simple cases to a more complex application, so you can see how the testing approach evolves as things get less trivial.
If your test suite feels slow, flaky, or just hard to reason about, this one is very much aimed at that situation.
For the r/SpringBoot community, you can use MLGARNIERMOIROUX50RE for 50% off.
Happy to bring the author to answer questions about the book. Also, I'm curious how people here are structuring their tests these days. Are you leaning more on slice tests, full context tests, or something custom in between?
Let us know in the comments.
Thanks for having us here.
Cheers,
Stjepan
Manning Publications
r/SpringBoot • u/paganoant • Mar 30 '26
Hey everyone,
Following up on my last post about the SpringSentinel v1.1.11 release (tool opensource to to perform static analysis and identify performance bottlenecks, security risks, and architectural smells), many of you asked for a more detailed breakdown of how to actually implement it as a "Quality Gate" and what the specific rules are catching.
I’ve just published a comprehensive guide on Medium that covers the full "how-to."
Read the full guide here: https://medium.com/@antoniopagano/how-to-use-springsentinel-245a3d2c433c
GitHub Repo:https://github.com/pagano-antonio/SpringSentinel
Again, a huge thank you to the community here for the feedback.
Happy coding!
r/SpringBoot • u/kiteissei • Mar 30 '26
r/SpringBoot • u/goto-con • Mar 30 '26
r/SpringBoot • u/Rhack2021 • Mar 28 '26
I had a setup with a few microservices (some Spring Boot, some Go) that all needed centralized configuration. Running a full Spring Cloud Config Server meant a JVM instance consuming 200-400MB of RAM just to serve YAML files. So I built a lightweight alternative in Go that returns the exact same propertySources JSON format.
What this means for Spring Boot clients:
Your bootstrap.yml stays the same:
spring:
cloud:
config:
uri: http://config-server:8888
application:
name: myapp
profiles:
active: dev
The response from GET /myapp/dev is identical to what Spring Cloud Config Server returns:
Your Spring Boot app does not know the difference.
What you gain:
What it supports:
What it does NOT support (yet):
So if you use the Git backend extensively, this is not a drop-in replacement. But if you are serving local YAML files (or can sync them via CI/CD), it works perfectly.
Quick start with Docker:
services:
config-server:
image: ghcr.io/roniel-rhack/config-server-go:1
ports:
- "8888:8888"
volumes:
- ./configs:/opt/packages/config-server/configs
restart: unless-stopped
GitHub: https://github.com/roniel-rhack/config-server-go
MIT licensed, 90%+ test coverage. Curious to hear from other Spring developers - would this fit your use case?
r/SpringBoot • u/Proper-Exit-7448 • Mar 29 '26
I am in 4th sem which is about to end in two months. Just know basics of DSA and have no development knowledge. How can I start from now to get prepared for job in a year. Since I know java so what would be better for development (mern or springboot).
r/SpringBoot • u/Key_Use_4988 • Mar 29 '26
r/SpringBoot • u/jackey_lackey11 • Mar 28 '26
I'm in my 3rd year rn (will start 4th after may).
Im learning java/ springboot, now the thing is that Ive done spring JPA and am learning Spring security.
I have no projects to my name (will create one in 2 weeks) and java and some python is all I know.
I have to learn js and other js frameworks such as react.js and all too now but Im tired. How much more do I have to learn and I don't have a lot of time.
I don't have a lot of time in my hands rn too since I'll have to start to look for internships and I'll be completing my degree in another 1 year. I feel frustrated but Ik that I brought this upon myself so can't even do anything about it.
Wth do I do now ?
r/SpringBoot • u/No_Health8217 • Mar 28 '26
I built a software which turns your study documents into interactive learning sessions. Upload any document (PDFs, text files, etc.) and Mindspace uses RAG to give you context-aware conversations about your material and generate content !

Mindspace does a few things I really needed:
1)Contextual Chat: I used pgvector and RAG (Retrieval-Augmented Generation) so I can ask specific questions about my files and get answers that actually make sense.
2)Active Recall: Instead of re-reading, I have it auto-generate quizzes ,reports and flashcards to actually test my memory.
3)Podcast Mode: It doesn't just read out text like basic TTS model; it generates a podcast-style audio script and voiceover. I use this to listen to my notes while I'm trying to learn something through different means than reading.
I was really inspired by NotebookLM seeing how they approached document intelligence ,it pushed me to see if I could build my own implementation using Spring Boot and Java. It's been a massive learning curve, especially handling the vector embeddings and the asynchronous audio generation.
r/SpringBoot • u/josephalfred281 • Mar 27 '26
I'm a Java developer with 6 years of experience. In all these years, I failed to become a good backend engineer due to lack of upskilling and poor projects that I worked in my past organisations. So, I started learning Springboot, spring security, microservices etc., from Udemy. Initial, it was a smooth journey but when I'm going to next section it kept on getting confused. There are lot of dependencies, methods, classes, interfaces to remember. And more over, few dependencies are deprecated as well, which makes it more difficult on what to choose as an alternative. For eg: the instructor impots dependency and starts using random methods from that. How would I know which method should be used or remember. And that too, IDE became smart enough to auto complete the code, how developers used to write longer code when there is no auto complete feature? Can someone please help me where I am going wrong? What am I lacking? I have an enthusiasm to learn, but when instructor types a 40 lettered random method, I get stuck on why he only choses that method instead of others.
r/SpringBoot • u/Tris_prior120994 • Mar 27 '26
Guys any ideas for springboot projects that would look good in the resume of a final year engineering student?
I have learnt some basics but wanna learn along the way.
Cant think of something good.
Chat got suggested a code editior.
r/SpringBoot • • Mar 26 '26
I'm on Spring Boot 3.5.x and acting as both the resource server and the client. I have something like this for my SecurityFilterChain ....
@Configuration
@EnableWebSecurity
public class OAuth2LoginSecurityConfig {
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests((authorize) -> authorize
.anyRequest().authenticated()
)
.oauth2Login(withDefaults());
return http.build();
}}
What controls how long users have before they have to login again? I thought it was server.servlet.session.timeout. But apparently that's just the idle timeout? What about server.servlet.session.cookie.max-age?
r/SpringBoot • u/paszeKongo • Mar 27 '26
r/SpringBoot • u/Houssem0501 • Mar 26 '26
Hello,
I’m building an LMS and trying to choose between NestJS and Spring Boot.
The app is more than a basic course website. The platform will eventually have student, parent, and institution portals, plus subscriptions, video lessons, quizzes, downloadable materials, live classes with recordings, notifications, payments/wallet, and later teacher tools + analytics.
I’m trying to choose the backend that will be best for:
NestJS feels attractive because I like the TypeScript ecosystem and it seems fast to build with.
But in contrast Spring Boot looks more solid for large applications.
For those who’ve built real production systems, which would you pick for this kind of product, and why?
Thank you!
r/SpringBoot • u/Crafty-Waltz-2029 • Mar 27 '26
Why java developers repositories in github named like 'spring-boot-jwt-token', 'spring-boot-basic-auth' etc. are they for demo apps or for teaching or other?
r/SpringBoot • u/Elegant_Cake_6046 • Mar 26 '26
Hi everyone,
I’m a 2025 graduate from a non-tech background, currently working as a backend developer in an MNC. During onboarding, I had around 3 months of Java full stack training, and after that I was assigned to a project. The project is an enterprise-level microservices application using Spring Boot.
I received about a week of KT (a few calls + recordings), and then I was assigned a user story. While I can understand the story at a high level, I’m struggling with actually implementing it because I don’t fully understand how the application is structured.
Some specific challenges I’m facing
There are multiple microservices, and I don’t know how they interact end-to-end
There are many endpoints in Swagger, but I’m not sure how to trace which ones are relevant I don’t know how to debug or trace the flow of a request across services
Even with GitHub Copilot, I struggle because I don’t know the correct starting point
I also hesitate to ask seniors frequently since they seem busy, and my team is fully remote, so I don’t have anyone physically around to guide me.
I wanted to ask:
I’m willing to put in the effort, just looking for the right approach.
Thanks in advance!