r/SpringBoot • • Apr 21 '25

News SpringBoot: Building URL Shortener Application - Complete Course (5 Hours)

52 Upvotes

I have published a new Spring Boot course on my YouTube Channel SivaLabs in which I will demonstrate building a URL Shortener application end-to-end.

https://www.youtube.com/watch?v=XEgS8yq-zgw

What's covered:

  • Building WebApp with Spring MVC + Thymeleaf

  • Spring Data JPA, PostgreSQL, Flyway DB Migrations

  • Spring Security, Method Level Security, Role Hierarchy

  • Spring JdbcClient

  • Dockerizing Spring Boot App using Buildpacks


r/SpringBoot • • Jan 17 '25

Guide 4 interesting new features in Spring Boot 3.4

52 Upvotes

🍃 Last week, I wrote the last part to introduce the most important features of the latest version of Spring Boot (3.4), the following are the links for the four parts of these reviews:

1️⃣ Structured Logging

2️⃣ MockMvc AssertJ Integration

3️⃣ Multiple Docker Compose files

4️⃣ New Bean Validation behavior for Configuration Properties

❓ What feature are you looking forward to seeing in the next version of Spring Boot?

📃 Spring Boot 3.4 Release Notes


r/SpringBoot • • Dec 06 '24

Spring Boot + WireMock integration

51 Upvotes

Hey r/SpringBoot! The official WireMock + Spring Boot integration is now available: https://wiremock.org/docs/spring-boot/

Mocking APIs with WireMock in Spring Boot integration tests is a very common approach for achieving isolated, deterministic tests, but integrating the two can be painful due to the challenges around managing random port numbers.

The WireMock Spring Boot integration solves this problem by supporting annotation-driven configuration of one or more WireMock instances, plus injection of URLs and port numbers as Spring properties.

We’ve written a bit more about this here: https://www.wiremock.io/post/wiremock-now-has-an-official-spring-boot-integration


r/SpringBoot • • Oct 27 '25

How-To/Tutorial Spring Data JPA Best Practices: Entity Design Guide

Thumbnail protsenko.dev
50 Upvotes

Hi everyone, I've written the comprehensive article on designing Spring Data JPA entities, it's the quintessence of my 9 years of experience with this technology. These best practices could help you save your codebase from legacy code and avoid common mistakes.

I will publish two more guides soon because the original felt more like a mini-book than an article.

Your feedback is very welcome to me. I hope you find this article helpful.


r/SpringBoot • • Oct 09 '25

Question Best way to handle OAuth2 login when frontend is React and backend is Spring Boot

50 Upvotes

I’m building a full-stack application where the frontend is a React SPA and the backend is a Spring Boot REST API. I want to add Google OAuth2 login for users.

Right now, I’m confused about the right way to implement authentication and session management since my frontend and backend are separated. I’ve gone through some guides, but most examples assume a server-side rendered Spring MVC app where the session is maintained by Spring Security.

I’m thinking of generating a custom JWT in the backend after login and sending it to the React app, which would be included in the header for further requests. I’m not entirely sure if this is the best or most secure approach.

I am new to this and would appreciate your advice on how you would handle this case or any guides.


r/SpringBoot • • Sep 06 '25

Question Spring Security makes no sense to me at all.

50 Upvotes

Every time i try to do anything with spring security i stumble around in vain will i give up and use AI or just look the problem up, are there any resources i can use to actually learn it in a way that i can use it, feels like im just going in circles.


r/SpringBoot • • Nov 27 '23

Comprehensive guide to Spring Boot 3.2 with Java 21, Virtual Threads, Spring Security, PostgreSQL, Flyway, Caching, Micrometer, Opentelemetry, JUnit 5, RabbitMQ, Keycloak Integration, and More!

50 Upvotes

Hi, after building many APIs for divers startup, I tried to consolidate all my knowledge and experiences into this article. It demonstrates commons features like persistence, error-handling, authentication & authorization, caching, message-brokering, rate-limiting, circuit-breaker, observability, integration testing and more. I hope It can help you get started!

https://medium.com/@jojoooo/exploring-a-base-spring-boot-application-with-java-21-virtual-thread-spring-security-flyway-c0fde13c1eca?source=friends_link&sk=306a3d734f7df4abe8d0a1f9136c6730


r/SpringBoot • • Oct 02 '26

News I built an open-source IntelliJ IDEA plugin to automate Spring Boot boilerplate

Post image
49 Upvotes

Hey everyone!

I’m a Junior Java developer, and I built an IntelliJ IDEA plugin called Architect as a way to learn more about Java, Spring Boot, and the IntelliJ Platform.

The main idea is to automate some of the repetitive work when adding a new feature to a Spring Boot application.

You enter an entity name and choose what you want to generate. Architect can create:

  • Entity

  • Request / Response DTOs

  • MapStruct Mapper

  • Repository

  • Service

  • REST Controller

  • Liquibase changelog and migration

  • Docker / Docker Compose

  • Required Maven dependencies

The plugin uses IntelliJ PSI to work with the project structure and source files instead of simply generating files in a fixed location.

Architect is free and open-source, and I’m planning to keep developing it.

Some things I want to add in the future:

  • Kafka templates

  • Spring Security configuration

  • Test generation

  • More infrastructure templates

  • Better project/code analysis

I’m still learning, so I’d really appreciate feedback from experienced Spring Boot developers.

How do you usually handle repetitive boilerplate when starting a new feature?

And what would you change or add to a tool like this?

GitHub and the plugin link are in the comments.


r/SpringBoot • • Jul 05 '25

Question Project Ideas to build with Spring Boot for Resume

49 Upvotes

I came to my final year. I haven't built anything significant.
I got stuck in the tutorial hell ( I cant build something unless I watch a tutorials ) for a couple of years and wasted a lot of time.
Dived into too many things on the surface level.
Now I am serious about becoming a Backend Dev. I learnt Spring Boot, Spring Data JPA, Hibernate, Spring Security, etc. I would like to build something that is resume worthy and meaningful.
Everyone I asked an advice for would suggest I build something / anything I feel is useful. I just can't think of one. ( Things like todo list, e commerce app seems saturated. If an E Commerce app is still worth in 2025. How could I stand out? And I cant really think a use case of why I would want to use a Student management system / hospital management system )

I would like suggestions from your side. I am going to stick with one of your suggests and build it.
( I don't haver plans of sticking with only the things I mentioned above. I am willing to learn new things if it's required to for the project ).

( My goal is to get my resume past the ATS tracker. Because my resume won't even get me an OA round. If thats the case, how am I going to show my DSA skills? )


r/SpringBoot • • Jun 04 '25

Guide 2 YOE Java Spring Boot Dev — Built 10+ Medium CRUD Apps, Feeling Stuck. How to Upskill and Switch Smartly?

49 Upvotes

I’m a Java Spring Boot developer with around 2 years of experience. In my current organization, I’ve built 10–15 applications — mostly medium-complexity CRUD apps, internal tools, or service layers.

For the past 1.5 years, the work has become very repetitive. I’m not learning much, just doing similar things in different wrappers. I feel like I’m stagnating and not growing technically or in problem-solving depth.

I’m actively looking to switch to a better role — ideally one that pays better and offers meaningful challenges (e.g., scalable systems, real-world problem solving, clean architecture, DDD, etc.).

I’ve started building side projects with clean architecture, SOLID principles, Redis, JWT, Swagger, Flyway, etc., but I’d really appreciate some guidance from people who’ve gone through a similar phase: 1. What kind of projects should I build that really stand out to hiring managers or startups? 2. How do I find companies or roles that don’t just assign more CRUD, but allow growth? 3. Any resources or roadmaps that helped you break out of the “CRUD loop”? 4. If you’ve made a successful switch — what worked for you?

I’m ready to grind and learn — just don’t want to waste more time doing the same thing and calling it “experience.” Any help or advice is deeply appreciated!


r/SpringBoot • • Jan 11 '25

Release Spring Boot 3.4.0 available now

Thumbnail
spring.io
49 Upvotes

r/SpringBoot • • Nov 10 '24

Java, Spring Boot Developer Help Available For Free

49 Upvotes

Hi
I have close to 3+ YOE in Java, Spring Boot and I'm looking for something interesting to get my hands on for learning new cool things. I'm available to work for free, So if anyone is building anything interesting and need a hand. Hit me up.


r/SpringBoot • • Aug 05 '25

How-To/Tutorial I got overwhelmed trying to test my Spring Boot backend... so I made this chart (PDF included

48 Upvotes

Okay so... I’ve been building a few backend projects in Spring Boot recently, and everyone kept saying:

As a beginner in backend testing, it got pretty overwhelming. Like… do I really need all these tools? Are they doing the same thing? Which one should I use first?

So I decided to sit down, read a ton of docs and blogs, play around with VS Code + Maven, and actually figure it out.

The result?

https://drive.google.com/file/d/1iP90OPFL4rgr4GrCmyzCx3gXxsD-u_IH/view?usp=sharing

I made this side-by-side comparison chart of:

  • Unit testing (with JUnit/Mockito)

  • Controller testing (with MockMvc)

  • Integration testing (with RestAssured)

  • End-to-End testing (Postman/Selenium)

It helped me a LOT to understand when to use what.

Fast vs slow
Real HTTP calls vs mock logic
What layer gets tested
Which dependencies you actually need.


r/SpringBoot • • Jul 03 '25

Discussion The thing I hate about spring documentation

48 Upvotes

For the most part, I love Spring boot and its massive ecosystem. The documentation is for the most part really helpful. The one thing I hate is that documentation hardly ever shows where static methods or classes are imported from. Take this Spring Security link: https://docs.spring.io/spring-security/reference/servlet/test/mockmvc/authentication.html

It is very informative, but gives no indication as to where the method user() etc is imported from. This is extremely frustrating as the answer is right in front of you, but you have to look in another place to find a simple import statement. It's relieving, but at the same time disappointing that Google's AI generated code actually explains where the methods are imported from.


r/SpringBoot • • Nov 05 '22

Where can I see some open source examples of large spring boot applications?

48 Upvotes

I am self learning Java and spring boot all by myself and I don't have someone to guide me. While I am able to understand the comcepts, I am finding it really difficult to navigate around the huge ecosystem. Specifically what should I learn for building my first app. There is just so much stuff that I am sure I can spend months learning it.

I would like to see the codebase of a few production ready spring boot applications to get a sense of common conventions, project structure and essential concepts.

Upon searching it on Google, all I am finding are demo applications built for tutorials. I would rather see the codebase for a small but production ready application to solidify my understanding.

Any help in the right direction is appreciated.


r/SpringBoot • • Aug 27 '26

Question How do I handle database migration in springboot

47 Upvotes

So I have this very disturbing question as someone new to spring, I am coming from Node + Express JS, where prisma handles all the migrations automatically just by me running commands on the terminals.

Now as I am learning springboot, I just realized one day I would create a production grade application and would need to be changing database fields or relations as demands adjust, please what is the most popular migration tool used in springboot??


r/SpringBoot • • Aug 13 '26

Discussion Along with Java springboot, how to keep yourself updated with other stuff

47 Upvotes

Java springboot is so vast once u dive into it, first java, then springboot, then microservices, exploring message queues , and what not

But nowadays what I have seen is that top companies organizing their hackathons, for fresh graduates

Most of them are ml based ai based, like making a model XYZ model, something like a model that detects deepfake images , that's just an example

What is the role of java springboot then, i sometimes feel I wasted my time learning this, i think I should have master python, what are ur thoughts


r/SpringBoot • • Sep 10 '25

Discussion Are you afraid of Broadcom locking down their opensource tools only for paying customers?

47 Upvotes

I recently noticed a pattern after Broadcom bought several opensource companies and products.

Speing framework used to be supported for the community in its last 2 major versions. If you were on 5.1.0, and the latest version was 6.2.0, you could still get a security update or fix in 5.1.1 or 5.2.0, without upgrading to 6.2.0.

After Broadcom bought VMWare and the Spring Framework, you get free updates only for last 2 minor versions. If you have 6.1.x or 6.2.x, updates are not available for free even for 6.0.x. Makes sense because most frameworks only support the latest version for free but it’s a radical change in Spring.

Recently, Broadcom also announced that it will shutdown their community Docker repo and the new open repository will have free Docker images only for non-commercial use: https://community.broadcom.com/tanzu/blogs/beltran-rueda-borrego/2025/08/18/how-to-prepare-for-the-bitnami-changes-coming-soon. Again, males sense, thise are tuned and hardened images and there’s a value in them, and cost to mainatin them. But it’s again distuptive.

I’m starting to see the pattern that Broadcom is trying to lock down as much as possible only to paying customers. I wonder if they can go even further and lock down using of Spring binaries only to paying customers, in somewhat similar way as HashiCorp locked down usage of Terraform only to their customers. Althoug Spring is opensource, Broadcom owns the Speing Framework trademark and can disallow using their binaries or using the Spring Framework trademark if people build their own binaries. Broadcom can also change the license as HashiCorp did with Terraform.


r/SpringBoot • • Feb 09 '25

Discussion New to Multithreading in Java? My Blog Series Breaks it Down! (Part 1 Now Live)

47 Upvotes

Hey everyone, I just published the first part of a blog series on mastering multithreading in Java, specifically within the Spring Boot framework.

Whether you're a beginner trying to grasp the fundamentals or an experienced developer looking to brush up on advanced concepts, this series is for you.

Part 1 covers:

  • Concurrency vs. Parallelism

  • Thread creation and lifecycle

  • Thread pools (Fixed, Cached, ForkJoinPool)

  • Synchronization basics (synchronized, volatile)

  • Race conditions and how to avoid them

Check it out here: https://divy9t.medium.com/mastering-multi-threading-in-java-spring-boot-part-1-fundamentals-of-multi-threading-in-java-37da3ba0aca7

In the upcoming parts, I'll dive deeper into the Java Memory Model, advanced thread pool configurations, and the concurrency utilities in java.util.concurrent.

Let me know what you think! I'm open to feedback and suggestions for future topics.


r/SpringBoot • • Jul 04 '21

I made a spring boot + Angular app to track covid vaccination center

Thumbnail
gallery
47 Upvotes

r/SpringBoot • • Sep 17 '26

How-To/Tutorial Spring Data JPA Tutorial: From Zero to Hero (of N+1)

Thumbnail
youtu.be
46 Upvotes

Hi folks! I recorded a video tutorial on Spring Data JPA. I tried to made it as complete for beginners as possible: setting up the project, creating entities, dealing with repos, queries, JPQL, and also relations between entities, N+1 solutions, type-safe queries, and also a bit of AOT repositories.


r/SpringBoot • • Apr 09 '26

Discussion I built a full-stack messaging app to actually understand Hexagonal Architecture and here's what I learned

46 Upvotes

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:

  • DDD is really powerful but it doesn’t fit everywhere. I have to spent more time to modeling, refining language than they would in a simpler architecture .

  • Keycloak integration is not plug-and-play. Spring Security + Keycloak took way longer than expected. When deploy the internet, the TLS certification and subdomain config is a real pain.

  • Hexagonal Architecture starts to click once you have a real domain. Messaging has enough moving parts (delivery status, notifications, media, group membership) that you actually feel the benefit of keeping your domain isolated.

  • WebSockets + STOMP with Spring is pretty solid once you stop fighting the session model.

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.

GitHub Repo


r/SpringBoot • • Jul 09 '25

Question New to Spring Boot – Need a Real Developer’s Guidance

46 Upvotes

I’m starting Spring Boot with:
✔ Java basics (OOP, collections)
✔ Some DSA & ML knowledge
❌ No backend/Spring experience

Looking for:

  1. Where to begin? (First steps after "Hello World")

  2. Simple but practical project ideas (Not just "Todo apps")

  3. Best free & open-source learning resources (Docs, GitHub repos, YT)

Bonus: What’s one thing you wish you knew earlier about Spring Boot?


r/SpringBoot • • Jun 07 '25

Question What is the point of using DTOs

46 Upvotes

I use spring to make my own web application in it but I never used DTOs instead I use models