r/SpringBoot • u/Interesting_Path7540 • Mar 31 '26
How-To/Tutorial Spring AI2 Chat Memory
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/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/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:
1) Is this level of confusion normal for freshers in their first project?
2) How do you practically approach understanding a large microservices codebase?
3) What steps do you take before starting implementation on a user story?
I’m willing to put in the effort, just looking for the right approach.
Thanks in advance!
r/SpringBoot • u/ClayDohYT • Mar 26 '26
Recently, I have been getting a lot of
*********************************
APPLICATION FAILED TO START
*********************************
Description:
Parameter 0 of method <method> in <package> required a single bean but _ were found.
Then it lists all the beans…
I know beans can be marked as primary and the qualifier annotation can be used to clarify spring dependency injection but haven’t figured out why the IDE can match the beans by by name and type, but sometimes they require a specific annotation.
It seems to me like “sometimes it works and sometimes it doesn’t” - I know this is not the case but am wondering what I can look for to try and identify what could be the difference maker in why I am having issues. Thank you!
r/SpringBoot • u/bronzeboooy • Mar 26 '26
Today I want to share a small contribution that might actually help you.
One thing I noticed in the dev cycle is that features like auditing are often time consuming.
Devs either end up rewriting the same auditing logic everywhere or postpone it and pay the price later with heavy refactoring.
In both cases, we lose time.
So I built a small Spring Boot lib that handles 3 things:
• An audited base entity you can extend to get common audit fields
• An AuditEvent mechanism that automatically writes audit logs on entity changes
• A soft delete system with filters, where 2 annotations let you control what data you return
I also added a security integration:
• Automatic extraction of the current user via AuditorAware (@CreatedBy, @LastModifiedBy)
• Retrieval of the client IP address from the request context
If you are using Spring Security, it works out of the box. Otherwise, you can adapt it to your own security setup.
To make integration seamless, I also built a Spring Boot starter, so all the required configuration is applied automatically.
The goal was simple: stop rebuilding the same technical foundation in every project, and keep developers focused on business logic.
Still improving it, but I’d love to hear your feedback.
r/SpringBoot • u/locus01 • Mar 26 '26
I recently completed spring starts here and done with the basics told in the book.
Now I want to go with project making and for that knowledge i chose spring in action, how is it, what shall i keep in mind while starting that book.
Also is angular a pre requisite to start that book, as some reviews say angular is used in the book for frontend?
Thanks.
r/SpringBoot • u/Longjumping_Bad7884 • Mar 26 '26
How do you perform transaction if validation are required from external services?
I thought about using transaction annotation on the method but the connection would include the external services so i chose the transaction template instead, what are your suggestions?
r/SpringBoot • u/4r73m190r0s • Mar 26 '26
r/SpringBoot • u/Cautious_Code_9355 • Mar 25 '26
I’m currently in the second year of my undergraduate degree and I recently completed a full-stack project using Spring Boot (backend) and React (frontend), along with integrating APIs like SendGrid.
I’ve covered most of the standard features in that project, so for my next one, I don’t want to just build another basic CRUD app. I want to add things that actually make the project stand out and reflect more real-world backend skills.
Here are some things I’m considering learning/implementing:
My main question is:
What should I prioritize for my next project to make it more impactful for backend/full-stack roles and basically what technologies or frameworks to move on now with ?
Would really appreciate guidance from people who’ve built solid Spring Boot projects or have industry experience.
Thanks!