r/SpringBoot • • Sep 19 '25

Question Review Spring Boot project

30 Upvotes

Hi guys, just made my second spring boot project looking for your guys reviews about how can i improve this project what i did wrong or should i just move to new project as its just my 2nd project learned a lot trough this process. waiting for your valubale feedbacks

https://github.com/BoTDevansh/Hotel-Booking-Application


r/SpringBoot • • May 22 '25

Question Why in every Java Spring tutorial there is only mapping instead of projection ?

30 Upvotes

Why almost every Java Spring tutorial show only how to map objects from db in memory ? Why projection is not prefered like in .NET for example?

Is this some common practice in Java to load everything into memory and then map ?


r/SpringBoot • • May 03 '25

Question Alternative ORM to hibernate + JPA

30 Upvotes

I'm looking for a ORM I don't need to debug queries to every single thing I do on persistance layer in order to verify if a cascade operation or anything else is generating N+1. 1 year with JPA and giving it up, I know how to deal with it but I don't like the way it's implemented/designed.


r/SpringBoot • • Apr 15 '25

Guide Simple Spring Oauth2 Guide

30 Upvotes

If you’re struggling to set up a persistence-based OAuth2 module, consider trying

https://github.com/patternhelloworld/spring-oauth2-easyplus

  • App-Token based easy OAuth2 implementation built to grow with Spring Boot

  • Complete separation of the library and the client (Library : API, Client : DOC, Integration tester)

  • Extensible: Supports multiple authorization servers and resource servers with this library.

  • Hybrid Resource Servers Token Verification Methods: Support for multiple verification approaches, including API calls to the authorization server, direct database validation, and local JWT decoding.

  • Immediate Permission (Authority) Check: Not limited to verifying the token itself, but also ensuring real-time validation of any updates to permissions in the database.

  • Authentication management based on a combination of username, client ID, and App-Token : What is an App-Token? An App-Token is a new access token generated each time the same account logs in. If the token values are the same, the same access token is shared.

  • Separated UserDetails implementation for Admin and Customer roles as an example. (This can be extended such as Admin, Customer, Seller and Buyer… by implementing UserDetailsServiceFactory)

  • Authorization Code Flow with Optional PKCE, Authorization Consent and Single Page Application (XMLHttpRequest)

  • ROPC for scenarios where accessing a browser screen on the server is either unavailable or impractical

  • Application of Spring Rest Docs, Postman payloads provided


r/SpringBoot • • Sep 13 '24

Looking for someone to collaborate with me in a back-end project

30 Upvotes

Hello everyone I am beginner in spring boot and I am currently working on a back-end project for restaurant management system which have many functionalities and I am looking for someone to collaborate with me on this project, if you are are interested to collaborate and discuss functionalities of the system, and extend it's features just leave a comment we gonna talk in discord and I will explain to you more about the project

NB : this project is open source and Iam a student just want to improve my coding skills so if you require money to work with me I am sorry.


r/SpringBoot • • Aug 28 '24

Strong static type system is the real reason why Java (Spring Boot) and C# (.Net) have more jobs in large enterprises when compared to NodeJS and Django

30 Upvotes

Observation: Startups have more jobs in NodeJS or Django. But large organizations (like banks) have more jobs in Spring Boot or ASP .NET

  1. Difference between static/dynamic and strong/weak languages: https://stackoverflow.com/a/74194749

  2. Static type system makes it slower to develop but produces less errors in production (important for enterprises). But weak type system makes it faster to develop (important for startups) but may lead to more errors in production. Refer to the "productivity vs code base size" diagram: https://itnext.io/performance-impact-of-dynamic-vs-strictly-typed-language-javascript-vs-f-97c70aacd695


r/SpringBoot • • Jul 16 '24

Monolithic vs Microservices

30 Upvotes

We have written an article on Monolithic vs Microservices:

  • Overview & Distinguishing Features

  • Merits of Monolithic and Microservice Architecture

  • Challenges in Implementing Microservices

  • Transition Strategies

  • Use Cases and more.

https://www.unlogged.io/post/monolithic-vs-microservices


r/SpringBoot • • May 18 '22

Beginner to Springboot, dummy guide needed

30 Upvotes

Is there anything even more simpler than spring.io documentation?

I'm currently doing my Masters and have my dissertation to complete by September. I had to take a break last year as I had a baby, and since then my brain is just not functioning and I've forgotten a lot during my time off. Long story short, I'm back at my studies with a last ditch attempt to get this thing submitted and I'm really struggling with the terminology.

I'm aiming to do a Web app using Springboot for backend and I have no idea to start. The YT tutorials I have found show a step by step guide to building but really I need to know why they do these steps etc. Is the Udemy course worth looking into?

Thanks for reading


r/SpringBoot • • Jul 19 '21

Build your crypto trading bot in minutes with Java

Thumbnail
baeldung.com
30 Upvotes

r/SpringBoot • • 21d ago

How-To/Tutorial How to actually learn spring boot?

29 Upvotes

I have decent hands on experience in java and java is my main language too.

How do I start learning springboot.

Recently started watching coder army tutorials but he went too in-depth that it went mostly over my head and went boring.

How do I learn hands on in spring boot?

where should I start?

Also please share any resources.


r/SpringBoot • • Sep 16 '26

Question Can we handle multiple URLs and multiple requests in one "@PostMapping" in Spring Boot?

29 Upvotes

I have one doubt in Spring Boot about "@PostMapping".

Can we use two URL paths in one "@PostMapping", like "/users" and "/customers", and call the same method for both?

Also, if two requests come to the same "@PostMapping" at the same time, will Spring handle both requests at the same time using different threads?

Just wanted to understand how this actually works.


r/SpringBoot • • Sep 16 '26

Discussion (JWT) different ways to implement it ,what most devs do for that case

29 Upvotes

to make JWT authentication in the application, I could not find like standard way to implementing it

my knowledge is that people create their own authentication filter + handeling the AuthenticationEntryPoint to return the exact right response when exception happen

is that the standard way that engineers follow to implement jwt authentication in the application?


r/SpringBoot • • Aug 26 '26

Discussion How do you deploy a spring boot application to AWS Lambda?

29 Upvotes

Hi

I am looking for advices and feedback on how to deploy Spring Boot web application to AWS Lambda, especially around making the Spring Boot main class compatible with AWS Lambda runtime.

I figured out the part where the Spring Boot application has to be packaged as a zip file to de deployed into the AWS Lambda environment, so that part is clear.

So far what I have found is that you need to have some kind of AWS Lambda dependency like lambda StreamHandler or web adapter on your Spring Boot project to make it compatible with the AWS lambda runtime.

While these may be the way to go but I am specifically looking for feedback if it is possible to integrate Spring Boot web application without using any AWS Lambda specific Java dependency. Just take a normal Spring Boot main application and make it run on AWS Lambda runtime. Is this possible at all or am I overthinking?

Appreciate your feedback


r/SpringBoot • • Jun 28 '26

Discussion Resources to relearn Backend (Java/Spring Boot)?

29 Upvotes

Hey everyone,

I'm currently working as a Software Engineer Intern, primarily with Java, Spring Boot, Kafka, MySQL, Redis, and MongoDB, building IoT and fleet management systems.

Although I've gained good production experience, I want to rebuild my backend fundamentals from scratch and deepen my understanding.

Looking for the best resources—courses, YouTube playlists, blogs, books, or GitHub repos—that cover backend engineering from basics to advanced.

Would love to hear what helped you the most.


r/SpringBoot • • May 29 '26

Question Should I learn TerraForm as a SpringBoot developer?

29 Upvotes

I've been coding for 35+ years, even before the dot-com days, and in the past 18 years I have been working with Spring and Spring Boot to created secured RESTful API's. I've also expanded into GraphQL and HTMX for personal projects. I've also dabbled with React+Vite and TypeScript to try to make a front-end, but mostly I am a back-end developer at heart.

Now that you know what I have been doing, it has been suggested that I learn TerraForm. I've already learned Docker, the basics anyway, and locally I have my local Docker with my back-end app in one container, Kafka in another container, and my DB in another container. I'm getting to know Kubernetes and Helm Charts, but that is a lot.

I remember when I started with Spring/Spring Boot around 2007 that no one ever asked me anything about the hardware or DevOps. Even when AWS, GCP, Azure (any Cloud), I was never expected to know about AWS at the beginning. I only started learning AWS for my personal projects, and I only do basic things with it because I don't want to spend a lot of money on it.

This gets into the real question ... as a back-end developer, who would absoluely prefer to stay out of DevOps entirely ... do I really need to learn TerraForm?

At this point in the shit-show job market, it is not unlikely to see the need for a "full-stack" developer who also knows CI/CD and knows AWS and knows DevOps. It seems these asshole companies and hiring managers want a one man IT Department under ONE salary.

I've been watching some videos on TerraForm, but I have no desire to become a DevOps person. I am happy working with SpringBoot/Java and building the logic for the back-end business app I am creating.

Any thoughts on this?


r/SpringBoot • • May 04 '26

How-To/Tutorial Spring Boot Best Practices That Should Fail Your Build

Thumbnail
protsenko.dev
29 Upvotes

Hi everyone, in this article I’m telling about Spring Boot Best Practices and ways how to detect violations of them in the project.

Article cover most of well-known best practices and provide a way for configuring Kotlin project to use them.

Set of tests/rules was made as Konsist rules with DSL wrapper and distributed as maven dependency for easy installation.

My case to build this library was to keep project clean with strict boundaries that will be enforced as test failings on local machine and CI to have faster feedback for newcomers and AI-generated code.


r/SpringBoot • • Feb 24 '26

Question Which is the best hosting service for a spring application?

29 Upvotes

I was using ngrok, but since I cant leave my pc forever powered on I was searching for a better option.

Vercel is not compatible with spring. Railway.app has a free trial but not a free plan.


r/SpringBoot • • Feb 03 '26

Question How many DTO's do I need?

29 Upvotes

I've been working in a new project but I'm struggling with how many DTO's are enough. Should I create one for creating a resource, other to update and other for reading?

For example:

- CreateProductDto

-UpdateProductDto

-ProductDtoResponse (for reading)

Can you guys help me please? I'm stuck


r/SpringBoot • • Jan 27 '26

News I built an open-source tool to audit Spring Boot performance issues (N+1 queries, blocking transactions, etc.)

29 Upvotes

Hi everyone!

I’ve been working on a side project called Spring Sentinel. It’s a static analysis utility designed to catch common performance bottlenecks and architectural "bad smells" in Spring Boot applications before they hit production.

Why I built it: I’ve seen many projects struggle with things like connection pool saturation or memory leaks because of a few missing lines in a properties file or a misplaced annotationTransactional. I wanted a lightweight way to scan a project and get a quick HTML dashboard of what might be wrong.

What it checks for right now:

  • JPA Pitfalls: N+1 queries in loops, EAGER fetching, and Cartesian product risks.

  • Transaction Safety: Detecting blocking I/O (REST calls, Thread sleeps) inside annotationTransactional methods.

  • Concurrency: Manual thread creation instead of using managed executors.

  • Caching: Finding annotationCacheable methods that are missing a TTL/expiration config.

  • System Config: Validating Open-In-View (OSIV) status and Thread/DB Pool balance.

The Output: It generates a standalone HTML Report and a JSON file for those who want to integrate it into a CI/CD pipeline.

Tech Stack: It’s a Java-based tool powered by JavaParser for static analysis.

I’ve just released the v1.0.0 on GitHub. I’d love to get some feedback from this community! If you have any ideas for new rules or improvements, please let me know or open an issue.

GitHub Repository: https://github.com/pagano-antonio/SpringSentinel/releases/tag/v1.0.0

Thanks for checking it out!


r/SpringBoot • • Dec 03 '25

Discussion Spring boot devs! Looking to connect and talk about java spring, spring ai, SDLC, projects! Might be fun! I have 4 years of experience in java spring boot and a bit in flutter.

29 Upvotes

Hey there redditer!

Want to talk about something you did In java spring? Share something to found cool?

Maybe you found what worked for you in your career or code or in interviews.

Thoughts on spring-ai? Let's talk. Reply below or feel free to dm me!


r/SpringBoot • • Nov 06 '25

Discussion 🚀 Just finished building a Fitness Tracker Microservice App with Spring Boot + React + Keycloak

29 Upvotes

Hey everyone! 👋

I recently completed my Fitness Tracker Microservice Web App, a full-stack project designed to help users log, track, and analyze their fitness activities in a secure and scalable environment.

🏋️ Project Overview

The app allows users to:

  • Add and manage daily workout activities 🏃‍♂️

  • Track duration, calories burned, and progress

  • Authenticate securely using Keycloak OAuth2 PKCE (with Google login support)

  • Communicate between services using RabbitMQ

  • Run all microservices seamlessly via Docker

⚙️ Tech Stack

  • Backend: Spring Boot, Spring Cloud (Eureka, Gateway), Hibernate, MySQL

  • Frontend: React.js (MUI for UI)

  • Security: Keycloak, OAuth2

  • Messaging: RabbitMQ

  • Containerization: Docker

This project helped me deeply understand microservice communication, API gateway patterns, and secure authentication in real-world applications.

🔗 GitHub Repository: Fitness_Tracker_Microservice_Web_App

I would like to extend my sincere thanks to Faisal Memon Sir for his valuable guidance and support throughout this project journey 🙏

#SpringBoot #Microservices #Keycloak #React #OAuth2 #Docker #FullStack #JavaDeveloper


r/SpringBoot • • Sep 27 '25

Question Using Testcontainers vs mocking repositories — am I missing the real benefit?

29 Upvotes

Hi everyone,

I’ve been using Testcontainers in my Spring Boot tests, but honestly, I don’t see a big difference compared to just mocking the repository. In fact, I often find it more complicated since it requires extra setup and configuration, while a simple mock is quick and straightforward.

I do understand that the main goal of Testcontainers is to run tests against something as close as possible to the real database. However, in my experience, I’ve never actually caught an error in a test just because of a database version change or some database-specific behavior.

So I’m curious:

What’s the practical value you’ve seen from Testcontainers in real projects?

Have you had bugs in production that Testcontainers would have caught but mocks would have missed?

Do you think it’s worth the extra complexity in a typical Spring Boot project?

Thanks!


r/SpringBoot • • Aug 25 '25

Discussion What Your spring-boot:run Hides: A Dive into Tomcat's Core

29 Upvotes

Short post on the container-first view: when you deploy a Spring app as a WAR on Tomcat, the container unpacks to WEB-INF, discovers Spring via META-INF/services/...ServletContainerInitializer, builds the context, and registers DispatcherServlet. Includes “see-it-yourself” commands and common failure patterns (why everything returns 404, Jakarta vs javax, context path quirks).

Part 2 (coming next): embedded Tomcat with Spring Boot (BOOT-INF, Main-Class, Start-Class), and when to choose WAR vs JAR.

Blog: https://medium.com/@divy9t/what-your-spring-boot-run-hides-a-dive-into-tomcats-core-a04f5bc4d565


r/SpringBoot • • Aug 10 '25

Question Is learning SpringBoot in 2025 still worth it? People around me tell that I will be easily replaced by AI in future and there will be no jobs in SpringBoot after few years....I have already learnt many concepts in SB and now I am doubting my decision!!

29 Upvotes