r/SpringBoot • u/OSBY_Glabay • Aug 13 '26
How-To/Tutorial The Spring Boot Fundamentals That Make Everything Click
r/SpringBoot • u/OSBY_Glabay • Aug 13 '26
r/SpringBoot • u/OSBY_Glabay • Aug 13 '26
r/SpringBoot • u/cielNoirr • Aug 12 '26
I've been thinking about contributing to some open source projects built with spring boot. What are some good open source projects that you think are worth contributing to in 2026?
r/SpringBoot • u/OSBY_Glabay • Aug 12 '26
This is a 6-part series. The idea is to explain to someone over a cup of coffee what one roadmap of a backend Java dev is, from idea to a Spring Boot web application that has a Desktop app and a Web App that will talk with a backend service.
Talking about Core Java, then DSA within Java, Databases, then Spring Boot, WebSockets, and then how to run it in production. Laying the pathway for a new/junior to get their curiosity going.
r/SpringBoot • u/OSBY_Glabay • Aug 12 '26
This is a Spring Boot web application built as educational content for a YouTube series. It demonstrates how to integrate multiple third-party APIs into a single cohesive application, tracking books, films, and games, while progressively introducing core Spring Boot concepts across each video.
This project serves as a hands-on learning resource for developers looking to understand:
- How to structure a multi-domain Spring Boot application
- How to consume external APIs using RestClient
- How to persist data with Spring Data JPA
- How to build server-rendered views with Thymeleaf alongside a vanilla JS frontend
- How to apply bean validation, service-layer patterns, and RESTful controller design
r/SpringBoot • u/nervous-comment • Aug 12 '26
r/SpringBoot • u/SmoothScience8192 • Aug 11 '26
r/SpringBoot • u/robintegg • Aug 10 '26
I’ve been spending some time looking at observability for Spring Boot 4, using my articulate project as a practical test case.
I compared three tools that fit different workflows and deployment models:
- Boot UI for local development and deep inspection
- Spring Boot Admin for a centralised dashboard across services
- Ostara for desktop-based inspection without running another server
If you’re working with Spring Boot and have been thinking about how you want to inspect and manage your applications, I’ve written up the comparison here and it has links to all the projects.
https://robintegg.com/2026/08/10/spring-boot-4-observability-options.html
I’d love to hear in the comments of any other tools that people are using to keep an eye on their Spring Boot apps.
Spoiler alert: boot-ui is awesome 🤩
r/SpringBoot • u/CoverRight9314 • Aug 11 '26
I’ve started moving away from writing assignments for class and started building my own project like an app. I’ve started using Spring boot for the backend and was wondering if there was any resource that could help me with that. I like to focus on learning how to build a persistent database, learning what beans are and how to set them up properly, learning how to build unit test to test my code base then learning css, JavaScript and html to build a front end. If anyone has any recommendations or advice that’d be helpful!
r/SpringBoot • u/Admirable_Health_292 • Aug 10 '26
Still cleaning up and optimizing... going through code other devs wrote, and picking up some Java concepts along the way that I'm not fully solid on yet. Thought I'd pass it along so you can see how it goes for you as well.
Here: https://github.com/Peter19570/Spring-Boot-Authentication-Starter
r/SpringBoot • u/Huge_Road_9223 • Aug 09 '26
I am working on a new SpringBoot personal app. I have docker installed locally on my Windows 11 machine, and I have an existing mysql database there. The schema/data is in flux as it is actively being developed.
In the past, I had a dockerfile to dockerize the app (like I am doing for this one) and it worked fine with my existing docker mysql database. I guess the difference with this new app is that it has docker-compose with the SQL database. This means when this new app gets run, and runs in docker, it starts up a completely new database container, and then I presume it has to be loaded with schema/data. I believe that's why when I run the app it says it can't find the database table.
So, there are two ways I can do this, and which way would be the better way if I want to move this app and the database to AWS ECS in a few months when I am done with the app.
Or, could I just move my database/script to AWS ECS in the future by itself, and let the app keep running against it as an externally managed database in it's own container.
I've seen companies that I have worked for do both, but I'm curious on what the strong opinions are.
Thanks!
r/SpringBoot • u/goto-con • Aug 09 '26
r/SpringBoot • u/SpringJavaLab • Aug 07 '26
I recently reproduced the Hibernate N+1 Query Problem in a Spring Boot application to better understand why a single repository call can generate multiple SQL queries behind the scenes.
The solution uses JPQL JOIN FETCH to fetch the required associations in a single query.
Query(""" SELECT DISTINCT o FROM Order o JOIN FETCH o.items i JOIN FETCH i.product WHERE o.userId = :userId ORDER BY o.createdAt DESC """)
List<Order> findAllWithItemsAndProducts(@Param("userId") Long userId);Where the N+1 problem occurs
The repository is called only once, but while mapping the response, accessing lazy-loaded relationships can trigger additional SQL queries.
List<OrderResponse> response = orders.stream()
.map(order -> {
List<String> products = order.getItems().stream()
.map(item -> item.getProduct().getName())
.toList();
return new OrderResponse(
order.getId(),
order.getTotalAmount(),
products
);
})
.toList();Although this Java code looks perfectly normal, order.getItems() and item.getProduct() may cause Hibernate to execute additional queries when those relationships haven't been loaded yet.
spring.jpa.show-sql=true to inspect the SQL generated by HibernateJOIN FETCHOne thing I found interesting is that there isn't anything obviously wrong with the Java code itself. The repository method is invoked only once, but navigating lazy-loaded relationships while building the response can result in multiple SQL queries behind the scenes.
Using JOIN FETCH allows Hibernate to load the required entity graph up front, avoiding those additional database round trips for this use case.
I'm curious how others handle this in production.
JOIN FETCH, @EntityGraph, or DTO projections?JOIN FETCH?I'd love to hear your experiences.
If you'd like to see the complete Spring Boot application, the generated SQL before and after JOIN FETCH, and the full implementation, I also recorded a practical walkthrough covering the entire example.
📺 YouTube: https://www.youtube.com/watch?v=natXN7xVEu8
r/SpringBoot • u/Federal_Equal1799 • Aug 07 '26
Hey i'm a third year student learning dsa from kunal kushwaha and asllo want to learning full stack with react and spring boot ,any resource for this two as well as some knowledge or guidence for full stack as i'm new .i'd aslo like to hear what technologies should i learn which would be helpfull so that i learn it and build project .i'm also searin gfor guys like me who started springboot and guide me through it's currenlty studying resource
r/SpringBoot • u/Chaos-vy17 • Aug 07 '26
r/SpringBoot • u/fykup • Aug 06 '26
I shared StatLite here a few weeks ago. Since then, v0.2.2 has added a published Docker image and native host metrics, so I wanted to share the updated version.
StatLite is a lightweight monitoring dashboard for small Spring Boot deployments. It runs as a single Go binary or Docker container, reads standard Spring Boot Actuator endpoints, and stores recent history locally in SQLite.
What’s new in v0.2.2:
You can try it with:
docker run --rm -p 127.0.0.1:9090:9090 ghcr.io/pvrlabs/statlite:latestThen open:
http://127.0.0.1:9090StatLite is intended for one or a few applications on a small VPS or single server, where Prometheus, Grafana, and Node Exporter may be more infrastructure than the deployment needs.
It provides visibility into application availability, JVM memory, HTTP errors, restarts, and host resource usage.
It is not intended to replace a full observability stack for Kubernetes, distributed tracing, complex alert routing, or long-term enterprise telemetry.
Write-up:
https://pvrlabs.xyz/articles/lightweight-spring-boot-monitoring.html
GitHub:
https://github.com/PVRLabs/statlite
How are you monitoring small Spring Boot deployments today? Are you using a full observability stack, Spring Boot Admin, custom scripts, or something lighter?
r/SpringBoot • u/New_Transition_2077 • Aug 05 '26
I am currently in my 2nd year. I want to learn spring boot please help me to find out the best resource
r/SpringBoot • u/kamen1991 • Aug 05 '26
Something has always bugged me about relying on annotation-based mapping frameworks once a Spring Boot project grows past a few modules. MapStruct is miles ahead of dynamic tools like ModelMapper thanks to compile-time code generation, but we kept running into recurring friction as our domain, entity, and DTO layers diverged.
That's why we ended up dropping MapStruct entirely in favor of plain Java transformer classes. No annotation processor, no generated sources, no separate mapper interface per entity pair.
The reasons that pushed us there:
Namedhelpers or embedding Java inside annotation strings likeexpression = "java(...)".target/generated-sources instead of your own domain code.The trade-off is real - more files, more explicit code to write. What we get back is full IDE refactoring safety, no annotation-processor step in the build, and a debugger that only ever shows real code.
Anyone else moved off MapStruct in a modular Spring Boot setup, or is this more trouble than it's worth for most projects?
(I Wrote a deeper architectural breakdown with code samples if anyone is interested - link in comments).
r/SpringBoot • u/alweed • Aug 04 '26
Most Spring Boot tutorials teach you to build a CRUD app and call it a day. But that's not really what the job looks like day to day, so I put together a project that mimics what you'd actually work on as a backend dev at a company with real infrastructure. I've added following 12 Tasks that you'd need to complete.
EntityManager.persist() vs save()Everything runs locally via Docker Compose, and there's a Bruno collection included so you can hit the APIs without writing your own Postman setup.
It's completely free and open source, so fork it, work through the tasks in order, and you'll come out the other side with a much better feel for what the job actually involves beyond "make endpoint, save to DB."
Would love feedback from people!
r/SpringBoot • u/pisspapa42 • Aug 04 '26
I'm seeing an issue in a Kafka consumer running on multiple application instances.
Environment
My entity has no version column.
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(nullable = false)
private Long id;
@Column(unique = true)
private String messageId; The entity is being saved using
repository.saveAll(...)
Scenario
Instead of seeing a unique constraint violation on messageId, I get:
Exception message : Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.example.entities.SMSEntity#40615089330]
There is no @Version on the entity.My understanding is that if id is null, Spring Data should treat the entity as new, call persist(), and Hibernate should perform an INSERT. If the row already exists (because of the unique messageId), I would expect a unique constraint violation rather than an optimistic locking exception.
Questions
max.poll.interval.msto prevent it from rebalancing, but what else I could do to fix this? This issue doesn’t happen that often, but only for 15-20 mins where 1500 odd records are impacted, and during this time, query usage time is comparatively high.
r/SpringBoot • u/ChemicalBumblebee346 • Aug 04 '26
Im learning Spring Boot from the Telusko YouTube playlist Alongside the tutorials I started building my own project thats a bit more advanced than whats covered in the videos After each tutorial I try to implement the concepts directly into my project instead of just copying the code
Im almost done with the project but recently I came across Anuj Bhaiyas Spring Boot course The way its marketed like industry level project real world architecture and all that has honestly made me feel like Im not learning enough My confidence has dropped a lot
The confusing part is that Im actually enjoying Spring Boot and I feel like Ive learned a lot by building this project But now Im wondering if Im missing something important
For people who have taken either Teluskos playlist or Anuj Bhaiyas course
Should I leave my current learning path and switch
Is Anuj Bhaiyas course significantly better or is it just a different teaching style
Does everyone go through this phase where every new course makes you feel like youre behind
Id really appreciate advice from people working with Spring Boot professionally I dont want to keep jumping between courses if finishing my current project is the better approach
r/SpringBoot • u/IndividualLow3561 • Aug 04 '26
r/SpringBoot • u/Poincarina • Aug 03 '26
I am part of a team mainting k8s microservices written in Spring. We need to regularly patch them. How are your experiences with the modernize agent
or other patching agents?
Were you successfull in implementing it?
r/SpringBoot • u/LostEconomics144 • Aug 03 '26
I've been working with Spring AI agents that perform multi-step tasks with real side effects (API calls, database writes, payments). The problem I kept hitting: when step 3 of 5 fails, steps 1-2 have already executed and nothing undoes them.
Temporal/Restate solve durability (resume after crash), but not compensation (undo what you already did). So I built Sagacity.
What it does:

When a saga fails, it walks the journal backward and runs compensations in reverse. Every tool call is journaled to an append-only Postgres table with SHA-256 hash chaining (for audit/compliance — EU AI Act Article 12 is coming in August).
What's working (38 tests):
What's NOT done:
GitHub: https://github.com/sumitvairagar/sagacity
Genuinely looking for feedback on:
Anyone else dealing with the "agent did half the work then died" problem?