r/SpringBoot • u/Melanin-Brown • Oct 30 '25
Discussion Why did you/your company choose Spring Boot over other frameworks?
Was it a specific feature, easier to work with, or just what the team already knew? Would love to hear the reasoning behind it.
r/SpringBoot • u/Melanin-Brown • Oct 30 '25
Was it a specific feature, easier to work with, or just what the team already knew? Would love to hear the reasoning behind it.
r/SpringBoot • u/S_e_r_c_h_u • Sep 29 '25
Hello everyone, I would like to ask you all recommendations about good online courses to learn Spring Boot. I have been working in Java for several years now in 3 different companies; however all of the either used plain Java or their own in-house framework. So I never needed to use Spring Boot.
These days I am looking for a new job, an it seems that my lucky strike is over, since literally every open Java position that I find requires experience in Spring Boot. Therefore, which online courses would you recommend me? It doesn't matter if they are long, actually the more experience I get, the better.
r/SpringBoot • u/Titsnium • Aug 15 '25
Django is my usual go-to but I have decided to learn Spring Boot now. Do ya'll have any tips for me to be as efficient as possible in learning, coding and structuring my projects with Spring Boot? Any advice or encouragement would be much appreciated. Thank you!
r/SpringBoot • u/Nervous-Staff3364 • Jul 16 '25
I’ve often faced the challenge of building flexible and dynamic search functionalities. We’ve all been there: a user wants to filter data based on multiple criteria, some optional, some conditional. Hardcoding every possible query permutation quickly becomes a maintenance nightmare. This is where JPA Specification comes in, and let me tell you, discovering it was a game-changer for me.
r/SpringBoot • u/javinpaul • Feb 22 '25
r/SpringBoot • u/[deleted] • Dec 24 '24
Recently when I create a new projects in spring boot using spring initializer , it shows vulnerabilities in jpa and web dependencies. Is it concerning or can I just ignore it
r/SpringBoot • u/javinpaul • Dec 19 '24
r/SpringBoot • u/Crafty-Waltz-2029 • Dec 05 '24
Hi guys,
I learned Java in my college days and want to pursue software engineering with Java. I build side projects using Spring Boot and pairing it with Angular. In my country, there are equal search results on Spring Boot with React or Angular. I also researched the pros and cons of Angular and React. When it comes to OOP, Angular is better. But in React, I can expand my skills in advance JS. Should I go to React so that I can expand my skills in JS(TS). Or in Angular, so that I can learn more on OOP, DI, Services, TS?
Thank you.
r/SpringBoot • u/MaterialAd4539 • Aug 09 '24
Can someone please provide me a rough roadmap of what all topics to cover in Microservices & design patterns to get a basic idea of what's generally being used in projects.
r/SpringBoot • u/brainiac_nerd • Jun 16 '24
Learn how to effectively containerize a Spring Boot application using Docker and Docker Compose for streamlined deployment and scalability
r/SpringBoot • u/TheUnknown_73 • Jun 12 '24
I mainly created projects using the MERN stack but recently found myself leaning towards Spring. This is my first personal project in Spring after completing Chad Darby's Udemy course and watching a bit of Bouali Ali's YouTube channel.
If you could spare some time, I would really appreciate any kind of feedback, advice, and guidance. Any mistakes I have made, or anything that I could or should change?
Here's my repo:
https://github.com/D1SCR3DIT/Employee_Management_System/tree/main
r/SpringBoot • u/ahmedzahran94 • Feb 25 '24
Hi my manager tell me that best practice is to map the returned dto from service layer in controller not in service Would any one agree with this ? My knowledge is the controller just one line and just delegate the logic to service layer and just return the response entity
r/SpringBoot • u/observability_geek • Jan 21 '24
r/SpringBoot • u/[deleted] • Dec 03 '23
Hey fellow devs, I'm curious about your approach to making a Spring Boot application production-ready. What steps or practices do you implement to ensure reliability, performance, and security in a live environment? Also, how do you define 'production readiness' in your workflow?
Also, what tools or libraries do you use to optimize your apps for production? Any best practices you swear by for ensuring top performance and security?
r/SpringBoot • u/CreeDanWood • May 13 '23
I seriously love springboot its been a month i have started learning spring framework and springboot. i didn't know springboot is that powerful, i didnt know things are ez pz, for example implementing OAuth, microservices, testing... i used to hate java but now because of springboot i love it, i hated boilerplates (constructor, setter,getter...) but with lambok ez pz. i want to know what thing made you like spring?
r/SpringBoot • u/Infamous-Bee-1145 • Mar 21 '23
I am building an IntelliJ plugin that lets you find bugs, refactor, optimize, or explain your code with ChatGPT.
Set up your Open API key - ensure you have credits in your OpenAPI account.
Enter it in the UnloggedGPT console and click on one of the buttons.
Warning: The unit test boilerplate generation with Unlogged works fully offline (since I have built it from scratch with no AI) but if you use one of the options from Find Bugs, Refactor, Optimize or Explain - your code snippet will be sent to ChatGPT API.
Install Unlogged from the JetBrains Marketplace and try it out.
Demo link in the comments.
r/SpringBoot • u/icastanon127 • Aug 25 '26
I’ve seen a few people here looking for Spring Boot open-source projects. I mentioned in one of those threads that I was preparing one, and it’s now public.
FinTrack is an event-driven personal finance platform for managing accounts, transactions, CSV imports, budgets, spending summaries, and notifications.
The stack includes Java 21, Spring Boot, Spring Security, Spring Batch, PostgreSQL, Redis, SQS, S3, Docker, LocalStack, Terraform, GitHub Actions, and AWS. It also uses patterns you’ll encounter in larger Java systems: transactional outbox, idempotent consumers, at-least-once delivery, database locking, restartable batch jobs, JWT/refresh-token rotation, retries, and failure recovery.
There are currently 23 open issues across API development, security, messaging, reliability, batch/import processing, and infrastructure, including two good-first issues. Most tasks are backend-only, and you don’t need an AWS account because the services can run locally.
The roadmap starts by strengthening the existing manual and CSV workflows, then moves toward provider-neutral ingestion and a Plaid Sandbox integration, followed by more practical personal-finance features.
Contributions and honest feedback are both welcome, whether it’s about the code, architecture, documentation, roadmap, issue scopes, or anything that could be clearer.
GitHub, live demo, video, and documentation:
https://github.com/icastanon/fintrack-platform
r/SpringBoot • u/pisspapa42 • Aug 04 '26
I'm seeing an issue in a Kafka consumer running on multiple application instances.
Environment
Spring Boot: 3.5.15
Hibernate: 6.6
Oracle: 19c
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
Instance A receives a message.
The entity's id is null.
saveAll() is called.
Hibernate obtains the next sequence value and inserts the row successfully.
Before the consumer acknowledges the broker, a network issue occurs.
The broker redelivers the same original message to Instance B.
The payload still has id == null.
Instance B again calls saveAll().
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
Why am I getting StaleObjectStateException/OptimisticLockException for an entity with no Version field when the incoming entity has a null ID? Could it be due to saveAll() method even Im trying to save a single entity?
For handling broker redelivery, I could try increasing 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/EagleResponsible8752 • Jun 15 '26
AI coding agents are powerful, but they keep making the same Spring Boot mistakes.
So I built spring-boot-skills for Claude Code.
18 reusable skills for JPA, REST, Security, Flyway, AI, Testing, and more.
r/SpringBoot • u/Sketusky • Apr 11 '26
Hi everyone,
I’m currently building my own service in Java (Spring Boot). I’ve got around 8 years of experience with Spring, but it has always been focused on REST APIs - I’ve never really written production grade frontend code.
I’ve played a bit with Thymeleaf as a hobby, but honestly I was never very satisfied with it. For this project, I decided to go with JTE since it integrates nicely with Spring Boot and lets me avoid diving into JavaScript/TypeScript, well actually to node world.
That said, I keep second-guessing this decision. I don’t really have a solid comparison point, and I’m wondering if I should try building the frontend with Angular instead (React is probably not for me).
This isn't a pet project, and the goal is to build it, deploy, do marketing. I'm really determined to deliver it. I also try to think long term but without experience it's tough decision to make.
So my question is: for a solo project like this - would you stick with JTE, or go with Angular?
Curious to hear your thoughts and experiences.
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/palebt • Jan 30 '26
r/SpringBoot • u/[deleted] • Jan 28 '26
Hi! Im a student and I’d like to get some up-to-date opinions on the state of Spring / Spring Boot in 2026 and looking forward, especially regarding job market demand, long-term viability, and industry trends.
I have professional experience with TypeScript, mainly in the modern frontend/backend ecosystem but i felt that the lack of strong structure, the huge dependency ecosystem, and how fast tools and frameworks change can make it easy to feel “lost”, even on medium-sized projects. Because of that, I’m looking to move toward something I think is more serious, structured, and predictable in the long run.
I narrowed my options down to C# (.NET) and Java (Spring / Spring Boot). At first, I was leaning toward C#, partly because several indexes (for example, TIOBE) show C# growing while Java appears stable or slightly declining. I also had the impression that the .NET community is larger and more “welcoming”.
However, when I looked at the actual job market, the number of openings requiring Java + Spring (at least in my region and for remote positions) seemed significantly higher so i started learning it.
i Would like to know the point of view of people that works with Spring/Spring boot, things such as:
How do you see Spring/Spring Boot in 2026 and over the next 5–10 years?
Is it still a solid choice for backend systems?
Do you see it losing relevance compared to .NET, Node.js, Go, in the long run?
From a career perspective, is Java + Spring still a good way to progress?
I’d really appreciate your insights, thanks!
r/SpringBoot • u/Mental_Gur9512 • Dec 26 '25
Hi everyone,
I’m looking for a high-quality but simple resource that explains how to properly implement JWT authentication.
I’ve been searching, but I keep finding different explanations, and I want to learn this the correct way, not just copy bad snippets.
Also, how big are the differences between Spring Boot 2, 3, and 4 regarding JWT and Spring Security?
Thanks in advance!