r/SpringBoot • • Oct 30 '25

Discussion Why did you/your company choose Spring Boot over other frameworks?

23 Upvotes

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 • • Sep 29 '25

Question Course recommendations for a Spring noob with Java experience

23 Upvotes

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 • • Aug 15 '25

Question New to Spring Boot, do ya'll have any tips for me?

23 Upvotes

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 • • Jul 16 '25

How-To/Tutorial Dynamically Querying with JPA Specification

Thumbnail
lucas-fernandes.medium.com
23 Upvotes

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 • • Feb 22 '25

Discussion Top 10 Microservices Design Patterns and Principles - Examples

Thumbnail
javarevisited.blogspot.com
23 Upvotes

r/SpringBoot • • Dec 24 '24

Vulnerabilities in dependencies

Post image
23 Upvotes

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 • • Dec 19 '24

Top 20 Spring Framework Annotations Java Developers Should Know

Thumbnail
javarevisited.blogspot.com
23 Upvotes

r/SpringBoot • • Dec 05 '24

Spring Boot with Angular or React

23 Upvotes

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 • • Aug 09 '24

Where to start in Microservices & design patterns?

23 Upvotes

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 • • Jun 16 '24

Spring Into Docker: Containerizing Your Application Effectively

23 Upvotes

Learn how to effectively containerize a Spring Boot application using Docker and Docker Compose for streamlined deployment and scalability

spring #springboot #docker  #dockercompose

https://techsphere.dev/spring-boot-docker


r/SpringBoot • • Jun 12 '24

My First Spring boot project and my first reddit post

23 Upvotes

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 • • Feb 25 '24

Map dto in controller

23 Upvotes

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 • • Jan 21 '24

The "spring way" of doing things: 9 ways to improve your spring boot skills

23 Upvotes

r/SpringBoot • • Dec 03 '23

What’s production-grade to you?

23 Upvotes

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 • • May 13 '23

I love springboot

23 Upvotes

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 • • Mar 21 '23

ChatGPT for Spring Boot projects

23 Upvotes

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 • • Aug 25 '26

Discussion I built an open-source personal finance platform with Spring Boot

22 Upvotes

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 • • Aug 04 '26

Question Spring Data JPA throwing StaleObjectStateException / OptimisticLockException on consumer retry across separate instances (No @Version column)

22 Upvotes

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

  1. Instance A receives a message.

  2. The entity's id is null.

  3. saveAll() is called.

  4. Hibernate obtains the next sequence value and inserts the row successfully.

  5. Before the consumer acknowledges the broker, a network issue occurs.

  6. The broker redelivers the same original message to Instance B.

  7. The payload still has id == null.

  8. 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

  1. 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?

  2. 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 • • Jun 15 '26

Discussion Spring Boot Skills for Claude Code

22 Upvotes

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.

👉 https://github.com/rrezartprebreza/spring-boot-skills


r/SpringBoot • • Apr 11 '26

Question 8 years Spring, zero frontend - JTE or Angular?

22 Upvotes

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 • • Apr 08 '26

How-To/Tutorial How to Instrument Spring Boot Applications with OpenTelemetry

Thumbnail
signoz.io
22 Upvotes

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 • • Jan 30 '26

How-To/Tutorial We fixed SQLite database locks in Spring Boot (and got a 5x performance boost)

Thumbnail
paleblueapps.com
22 Upvotes

r/SpringBoot • • Jan 28 '26

Question State of Spring / Spring Boot in 2026 and beyond

22 Upvotes

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 • • Dec 26 '25

Question JWT implementation for beginners, I am looking for one clear and correct source

22 Upvotes

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!