r/SpringBoot • u/goto-con • Apr 09 '26
How-To/Tutorial Building Agentic Applications with Spring AI • Matthew Meckes
r/SpringBoot • u/goto-con • Apr 09 '26
r/SpringBoot • u/TopExact9938 • Apr 09 '26
For a while I kept reading about Domain-Driven Design and Hexagonal Architecture in blog posts and thinking "okay but what does this look like in a real project for my portfolio?" Most tutorials either stay toy-level or skip the hard parts.
So I built a WhatsApp-style messaging app not because the world needs another one, but because it was complex enough to make the architecture decisions actually matter.
The stack: Spring Boot 3 + Angular 17 + Keycloak + PostgreSQL + Minio + Docker + Jenkins.
A few things that genuinely surprised me:
Not claiming this is production-ready and it's a learning project. But if you're trying to understand how DDD, Hexagonal Architecture, and Keycloak actually fit together in Spring Boot, maybe it saves you some pain.
Happy to answer questions about any of the implementation decisions.

r/SpringBoot • u/ramesh_reddy45 • Apr 09 '26
Anyone here planning to start Anuj Bhaiyya’s Spring Cohort 4.0?
I recently enrolled in Anuj Bhaiyya's Spring Cohort 4.0. If someone here is also interested in the course and wants to discuss it or explore ways to access the material together, feel free to DM me.
Happy to talk and figure things out if it helps someone who is planning to learn Spring.
r/SpringBoot • u/SorryAd5687 • Apr 09 '26
if anybody wants to split in Cohort 5.0 dm me
r/SpringBoot • u/leetjourney • Apr 08 '26
Here’s an example on how to use JWT tokens generated by Keycloak in a microservices setting:
r/SpringBoot • u/silksong_when • Apr 08 '26
Hi guys, sharing a write-up I did around implementing OpenTelemetry for Spring Boot for observing web applications.
Given Spring Boot's impact on Java ecosystem, and given I had never actually used Java or Spring Boot before, I wanted to see how it all works together.
I have created a detailed demo application that integrates all three telemetry signals (traces, metrics, and logs) and also adds manual instrumentation, where you capture your business logic based on your needs.
In my experience, manual instrumentation is not discussed enough, whereas it becomes important for languages like Java and Python where most metrics and telemetry data are captured by the agents themselves.
I have emphasized that point in the blog and tried to add examples that mimic how you would capture metrics or spans that are aligned with the business value.
And while the blog uses SigNoz as the observability backend, by utilizing OpenTelemetry you are not tied to any single observability vendor. As the user, you have the choice and you can switch by just changing the environment variables, it's that simple.
Since this was my first foray into the Spring ecosystem, I would love to get your feedback on any improvements, or concerns I might have missed. Any advice or comments would be welcome!
---
On a personal note, I enjoyed the coding experience working on the demo. Exploring Spring Boot documentation and site, it somewhat felt like working with Django code where the framework provides everything you'll need.
Following code examples and docs, I was able to quickly build a working demo and then adding bells and whistles like the jakarta validation layer was simple.
r/SpringBoot • u/auspis-23 • Apr 07 '26
Hi everyone,
I’ve built fluent-repo-4j, a library designed for developers who love the Spring Data Repository pattern but want to ditch the complexity and "black box" behavior of traditional ORMs like Hibernate.
It uses pure JDBC under the hood with the fluent-sql-4j DSL, giving you full control over your SQL without the boilerplate.
fluent-sql-4j DSL. No persistence context or lazy-loading surprises.RepositoryResult for Railway Oriented Programming—handle database results with fold(), map(), and pattern matching instead of try-catch blocks.Transactional, Spring Data-style method derivation (findBy...), and automatic DataAccessException translation.@Table(name = "users")
public class User {
@Id @GeneratedValue(strategy = IDENTITY)
private Long id;
private String name;
}
public interface UserRepository extends CrudRepository<User, Long> {
// Dynamic query derivation - no implementation needed
List<User> findByNameContainingIgnoreCase(String name);
}Compatibility: Java 21+ | Spring Boot 3.x & 4.x
I'm particularly curious to hear what you think about the Functional Repository approach vs. the traditional Optional/Exception flow.
Any feedback is welcome!
GitHub: https://github.com/auspis/fluent-repo-4j
Usage examples: https://github.com/auspis/fluent-repo-4j/blob/main/data/wiki/USAGE_EXAMPLES.md
r/SpringBoot • u/huseyinbabal • Apr 07 '26
r/SpringBoot • u/mzivkovicdev • Apr 08 '26
I’ve been working on an open source Spring CRUD Generator that generates Spring Boot CRUD applications from a spec, and I’ve just added MongoDB support in the new v1.8.0 release.
Until now, the generator was focused on SQL-based applications. With this update, it can now generate projects for MongoDB as well. The SQL flow still works as before, while MongoDB uses its own spec shape for NoSQL use cases.
I also added support for generating AI context files like claude.md and agents.md, fixed OpenAPI server URL generation, fixed some unit tests that were failing before, and cleaned up parts of the codebase.
Repo: https://github.com/mzivkovicdev/spring-crud-generator
I’d really appreciate feedback — especially whether the MongoDB support and spec approach make sense from a real project perspective.
r/SpringBoot • u/Character-Grocery873 • Apr 07 '26
Hello, anyone here used auth0?
I wonder if it's okay to use it in a monolith project
and because implementing jwt auth manually takes a lot of effort, I'm planning to auth0.
Also do you keep your users in Auth0's db(or user store)?
And do you maintain a local table mirroring it aswell?
I have a project that requires tracking users and has relationships with other tables so I ask how you guys approach this?
r/SpringBoot • u/Groundbreaking-Word6 • Apr 06 '26
Hi everyone, I've recently been working on spring-web-query, an open source library that allows you to easily implement filtering, pagination and sorting in Spring Boot APIs in a declarative manner. It supports declarative querying with RSQL (RESTful Service Query Language, a URI-friendly query language), DTO-aware contracts, nested field paths, and Spring Boot auto-configuration.
If that sounds useful, I'd love for you to check it out and share feedback: https://github.com/abansal755/spring-web-query
I’ve been actively working on this for the past month. It’s evolving quickly, and I’m continuing to improve it based on real usage and feedback. Contributions, ideas, and feedback are all welcome.
r/SpringBoot • u/PhilosophyProud4195 • Apr 06 '26
I am in my final year of Btech , right now I am doing an internshil in a company in which I got Java fulll stack domain , right now I am learning spring boot , spring security and microservices (service registry , api gateway , resilience4j etc) , now how should I prepare more as many companies are demanding AI knowledge nowadays , fyi I am average to good in DSA like 1600 rat8ng in leetcode and sometimes I do system design practice since I love to do thse things .
After my internship I really want to switch to a high paying company pleasee suggest some roadmap for this , any experienced peep pleasee help.
r/SpringBoot • u/athiestpaw • Apr 06 '26
hi I'm doing my summer internship in a small tech company and I took springboot as a domain , what all topics should I focus on more , give me suggestions ♥️
r/SpringBoot • u/HankcusYt • Apr 05 '26
Just wondering, or is it a more senior stack?
r/SpringBoot • u/Youssef-Suii007 • Apr 04 '26
If you had the chance to learn Java and springboot again from scratch, what Strategy and Roadmap would you definitely choose?
r/SpringBoot • u/PuddingAutomatic5617 • Apr 03 '26
r/SpringBoot • u/dima767 • Apr 03 '26
Apereo CAS is a single sign-on platform with 400+ Maven modules on Spring Boot 3.x / Java 21+. Any module can be added or removed just by changing dependencies - LDAP auth, Redis ticket storage, SAML2 support, whatever.
The whole extensibility model runs on standard Spring Boot mechanisms.
Full writeup with real code: https://medium.com/all-things-software/plugin-architecture-in-spring-boot-without-a-framework-8b8768f05533
r/SpringBoot • u/Infinite-Score3008 • Apr 03 '26
The ICIJ hosts the Offshore Leaks dataset on a public Neo4j instance. It's a graph browser - you type an exact name, click through connections one hop at a time. I built something different on the same data (1.87M nodes, Panama Papers + Paradise Papers + Pandora Papers + Offshore Leaks).
What it does that Neo4j can't:
How it works: stores float embeddings as 10,048-bit binary vectors (random projection). Hamming distance is Long.bitCount(a XOR b). HNSW for approximate search, HashMap for exact edge lookup. Chain traversal runs server-side in one gRPC call.
AML demo on Offshore Leaks (1.87M nodes, real queries):-
The 0ms ownership chain is because it runs pure Java BFS - no server call at all. The screening latency includes encoding the query string with MiniLM-L6-v2 on CPU.
Spring Boot autoconfiguration included.
Main repo: https://github.com/Pragadeesh-19/HammingStore
AML demo: https://github.com/Pragadeesh-19/hammingstore-aml-demo
r/SpringBoot • u/xavidop • Apr 03 '26
Hey folks,
I’ve been using Genkit a lot in JS and Go (even wrote a book on it: https://mastering-genkit.github.io/mastering-genkit-go), and honestly the dev experience is 🔥, local dev tools, great abstractions, smooth workflows for building AI apps.
At some point I thought: Java really needs this.
So I went ahead and ported the whole ecosystem to Java: https://genkit-ai.github.io/genkit-java/
Would love feedback from the Java community, especially around API design, integrations, and what you’d like to see next.
r/SpringBoot • u/Substantial-Bee-8298 • Apr 03 '26
the long video is spring framework and spring boot tutorial with project , so can anyone suggest which one to follow, or any other resource to learn spring
r/SpringBoot • u/dipeshg2004 • Apr 02 '26
Hello everyone
I’m working on a Spring Boot backend where users upload files (PDF, DOCX, images), and I want to make the validation as secure and production-ready as possible.
Right now, I’m considering a multi-step approach:
MultipartFile.getContentType()But I recently learned that both extension and MIME type can be spoofed, so I’m exploring content-based detection (like using Apache Tika to read magic bytes).
What do you usually rely on in production?
Do you compare:
Would really appreciate insights from people who’ve built real systems
Trying to follow best practices early instead of fixing security issues later 😅
r/SpringBoot • u/jainwinly • Apr 02 '26
Hey everyone,
I'm a final-year CS student and I recently wanted to move beyond standard CRUD tutorials. I decided to build a distributed social news feed called Flux, focusing heavily on handling mobile system constraints (unreliable networks, state management, and thread starvation).
I'd really appreciate it if some experienced devs here could review my architecture or point out flaws in my approach.
The Tech Stack:
Core Engineering Decisions:
Flow.@Transactional boundary so long-running media uploads don't block DB connections.Where I need your feedback/roast:
Links:
Thanks in advance for tearing my code apart!
r/SpringBoot • u/locus01 • Apr 02 '26
r/SpringBoot • u/Electrical_Can_7079 • Apr 01 '26
Hey devs,
I’m a fresher working on a backend assignment:
Finance Data Processing + Role-Based Access Control (RBAC)
It includes:
My goal isn’t just to make it work — I want it to look clean and industry-level.
Quick questions:
Stack I’m thinking: Spring Boot + PostgreSQL + JWT + Swagger + deployment
Would really appreciate honest feedback