r/SpringBoot • • Jun 04 '24

Never tried learning from docs

27 Upvotes

I have always seen people recommending the docs for java and spring/spring boot until now I have been learning from online tutorials and doing stuff they teach there along with them but yeah I am not getting much success in interviews as of now how bad is my learning strategy. I completed the whole Chad Darby Udemy Spring boot course and in the last interview the interviewer asked me about patch and optional mapping which weren’t once used in that tutorial so I didn’t know anything of them . What changes should I make?


r/SpringBoot • • Apr 21 '24

OC How to become good Backend Developer

27 Upvotes

hi, i need suggestions on how to move ahead from this point, I am familiar with Spring Boot and have somewhat familiar with its modules lets say Rest, Web, Security (JWT / OAuth), microservices, now at this point i want to move forward that worth the time and enhance my knowledge, i am fresher and preparing to get a job, meanwhile want to skillup, would love to create new projects,i have only projects like Blog App, simple Crud apps.

Any advice/resources would be breadth of fresh air for me.


r/SpringBoot • • Jan 21 '24

Seeking Mentorship in Spring Boot & Java

27 Upvotes

I'm a Java developer with 1.5 years of freelancing experience, mainly in Spring Boot. I'm eager to transition to a corporate role but feel I need mentorship to bridge the gap.

About Me:

  • 1.5 years of Java & Spring Boot.

  • Freelancer looking to step into corporate.

What I'm Looking For:

  • Guidance on best practices.

  • Code reviews and career advice.

  • Tips for job interviews.

If you're a Java/Spring Boot dev willing to offer guidance, let's connect! Drop a comment or DM.

Thanks!


r/SpringBoot • • Oct 06 '26

Question How do i practice spring boot?

26 Upvotes

I have been learning Spring Boot and other technologies for the last 2-3 months.
I feel I understand the concepts and theory of how things work, and I can code what I've learned.
But I still feel like I don't know enough, and I am super scared to even apply for a job. I feel that I am not prepared enough. Do I need to practice more? Please share some practical advice.


r/SpringBoot • • Aug 10 '26

Discussion Spring Boot 4 observability tools

26 Upvotes

I’ve been spending some time looking at observability for Spring Boot 4, using my articulate project as a practical test case.

I compared three tools that fit different workflows and deployment models:

- Boot UI for local development and deep inspection
- Spring Boot Admin for a centralised dashboard across services
- Ostara for desktop-based inspection without running another server

If you’re working with Spring Boot and have been thinking about how you want to inspect and manage your applications, I’ve written up the comparison here and it has links to all the projects.

https://robintegg.com/2026/08/10/spring-boot-4-observability-options.html

I’d love to hear in the comments of any other tools that people are using to keep an eye on their Spring Boot apps.

Spoiler alert: boot-ui is awesome 🤩


r/SpringBoot • • Jun 18 '26

Question Spent 4 hours debugging a TransactionSystemException. The fix was one line. The problem was finding it.

26 Upvotes

Last month we had a production incident. A critical order was failing silently.

Sentry gave us this:

TransactionSystemException: Could not commit JPA transaction
at SimpleJpaRepository.save()
at OrderService.processOrder()
... 40 more lines of Spring internals

That's it. No entity state. No user context. No hint that the transaction had already been marked for rollback 3 calls earlier by a Hibernate validation error we never caught.

We added logs. Redeployed to staging. Couldn't reproduce it.Redeployed to prod with more logs. Waited. Happened again. Finally found it: a Transactional method calling another Transactional method with a different propagation level, swallowing the real exception.

4 hours. One annotation conflict.

The worst part? Every error monitoring tool we've used treats Spring like a black box. The moment your code enters a transaction boundary or an async thread, context disappears.

Anyone else debugging Spring Boot in prod like this?

How are you handling it?


r/SpringBoot • • Jun 10 '26

Discussion I got tired of writing the same Spring Boot CRUD boilerplate, so I built a deterministic compile-time generator.

26 Upvotes

In every Spring Boot project, we end up writing the exact same layers for basic CRUD: Read/Create/Update DTOs, MapStruct interfaces, REST Controllers, Services, and Repositories.

AI can generate this, but it doesn't enforce a stable contract across a codebase. Runtime solutions (like Spring Data REST) add reflection overhead, limit custom business logic, and bloat JSON payloads with HATEOAS _links.

I wanted a solution that generates plain, reviewable Java source code during the build phase (javac), with zero runtime dependencies. So, I wrote an annotation processor.

You just annotate your JPA entity:

@CrudGen
@Entity
public class Product {
    @Id @GeneratedValue
    private Long id;

    @DtoField(dto = "Create", required = true)
    @DtoField(dto = "Update")
    @DtoField(dto = "Read")
    private String name;

    @DtoField(dto = "Read")
    private BigDecimal price;
}

At compile time, it automatically generates the build/generated sources for:

  • Controllers & Services: Configurable endpoints for CRUD, batch operations, and pagination.

  • Clean DTOs & Mappers: Generates the POJOs and the MapStruct interfaces.

  • JSON Patch: Native support for application/json-patch+json partial updates.

  • N+1 Safe Queries: Automatically applies @EntityGraph on JPA reads to handle relations without mapper-level database lookups.

The generated code is part of your normal build output. Failures surface at compile time, and changes are visible in diffs. The library targets Spring Boot 3 and 4 (processor runs on Java 8+).

I would love to get your architectural feedback on the compile-time generation approach vs. runtime reflection tools.

(Links to the repo and Maven Central are in the comments).


r/SpringBoot • • May 05 '26

Question What's the best way to learn redis?

26 Upvotes

I am currently learning backend development using Spring Boot and want to start learning Redis. I’m confused about the best approach—whether I should first watch tutorials to understand the concepts or directly start building a project and learn along the way. What is the most efficient way to learn Redis from a Spring Boot perspective ?


r/SpringBoot • • Apr 02 '26

Question How do you validate file types securely in Spring Boot? (MIME vs content detection)

26 Upvotes

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:

  • Checking file extension (e.g., .pdf, .docx)

  • Checking MIME type from MultipartFile.getContentType()

  • Limiting file size

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

My questions:

  1. What do you usually rely on in production?

    • Only MIME type?

    • MIME + extension?

    • Full content inspection (e.g., Apache Tika)?

  2. Is Apache Tika the standard choice, or are there better/lightweight alternatives?

  3. Do you compare:

    • extension vs MIME vs detected type or just trust the detected type?

  4. Any performance concerns when using Tika for large-scale systems?

  5. Are there any best practices I might be missing? (e.g., virus scanning, file storage strategies, etc.)

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 • • Feb 06 '26

Discussion Custom Spring Boot Starter for JWT Authentication

26 Upvotes

I created an open-source Spring Boot starter for seamless JWT authentication integration. This starter provides plug-and-play JWT token generation, validation, and request filtering with minimal configuration. i want feedback on this and want to improve it more so that setting up JWT auth in spring should be piece of cake.

Here is github Link :- Official Github repository

PS:- People who are advising in comments that you should not use these old jwt traditional methods,as these are irrelevant now , but thing is i am sharing what i have built from my sense of knowledge and problem i faced while learning basics of spring security, and not to contradict any technology that is way more better than my project, it's just sharing knowledge with people and learning. ✌🏻✌🏻


r/SpringBoot • • Nov 18 '25

Question Does Spring (Boot) have a built-in or defacto standard library to handle automatic schema generation?

26 Upvotes

Started learning Spring Boot through toy projects a couple weeks back and everything was fine with the auto-ddl update setup in development. As any new changes to entity fields translated automatically to the db schema.

I then began using Flyway to handle migrations appropriately as it's the recommend way in production. Low and behold, all what it does is execute the SQL statements which I manually write, then updates a it's records with the event.

Now, that's definitely better than nothing but, why isn't there an automatic schema generator for such a widely used framework? I searched up Liquibase, same thing. Only difference is it being DBMS agnostic. Only tool I found was an open source repo on GitHub last updated 2 years ago with a bunch of forks.

I immediately started listing frameworks that I've worked with other than Spring, and every one of them either had a built-in way of doing it or a well-maintained/known professional library.

The argument of "more control" is irrelevant here, we're talking automation. You can get back to your generated migration files for manual modifications. Plus, it adds the burden of redundancy, where you have to maintain to sources of cenceptually the same thing, the entity and the migration/db schema.

If a library exists for this task, why is it not more popularized through every forum and tutorial and considered the norm? A simple automation won't render an application unprofessional


r/SpringBoot • • Sep 25 '25

Question Is Quarkus a like to like replacement for Springboot?

26 Upvotes

We have a lot of microservices which use Java/Springboot hosted in GCP. We are told to slowly move away from Springboot for reasons unknown. The suggested option was Quarkus. We are trying to explore about it and if anyone using Quarkus please suggest the problems we might face and the pros and cons over Springboot. TIA


r/SpringBoot • • Sep 07 '25

How-To/Tutorial Feel Lost in the Spring Boot journey

26 Upvotes

Well I started spring boot in Kotlin just a few weeks before and I feel like I am lost. I am from Python (FastAPI) so Spring Boot feels a little bit overwhelming but that's not the issue, the issue is what to read and what to not, specifically the theory part as it feels like never ending depth so could you help me in this.

If you provide some kind of roadmap or some starter guidence like read this theory first then the code understanding will be easier or anything helpful then I will be grateful.

Currently I have finished the Layer Architecture part ( controller, service, repository, ), made my self familiar with JPA repository, learnt about Beans and Bean lifecycle and some Spring AOP. The part I am currently struck is the Authentication part where the filter chain or something like that used, as I don't understand what's happening behind the scenes. In FastAPI I used Middleware or Route classes for this but here it feels different.

Also if you know any starter project to practice, you can suggest also.


r/SpringBoot • • Aug 27 '25

Question Genuine Springboot resouces from absolute beginner to master

26 Upvotes

Hello everyone. I am start posting my queries in this subreddit. In the past few months, I am drinking upon Springboot resouces, some is absolute waste of time and some just puked after 4-5 videos bombarding terms out of nowhere. Chose courses but always disappointment

So I need genuine Resources to genuinely learn springboot. I know java . I started java in 2023 and I have enough prior knowledge of java but late to learn Springboot.

Please share genuinely resouces. It would be helpfull for all

Thank you


r/SpringBoot • • Aug 08 '25

Question Brushing Up on Spring Boot & System Design for Senior-Level Interviews – What to Focus On?

26 Upvotes

I’m pretty comfortable with DSA – been practicing on LeetCode but I’m a senior dev (7 YOE) and haven’t interviewed in a while. I want to brush up on Java, Spring Boot, and related backend stuff for senior-level interviews. Any tips on how to prepare for framework and system design questions they usually ask at that level?


r/SpringBoot • • Jul 25 '25

Discussion Project ideas to learn spring

26 Upvotes

Hey guys I’ve noticed that this subreddit has a lot of beginners or people looking for project ideas. I created a Spring Boot backend project to help get inspiration for your next project. Feel free to check it out, btw it’s free and you might find something inspiring! It’s name is neven.app


r/SpringBoot • • Jul 18 '25

Question WebClient vs RestTemplate Confusion. Help!!!

26 Upvotes

I'm struggling to understand when to use WebClient versus when to use RestTemplate.
My app follows the MVC pattern, but I need to call an external API to get real-time data.
If I use RestTemplate, it blocks each thread and which I don't want. ChatGPT said it's not good to mix webclient with MVC pattern if the app isn't fully reactive itself. I'm just so confused right now, cause what is even a reactive application? What's the best thing to do in this situation?

Can someone guide me with a link to a tutorial, an article that explains all these, or a project that calls an external API with WebClient and RestTemplate?

ChatGPT kept confusing me cause I don't understand it enough to structure my prompt, so it just keeps circling the same replies.


r/SpringBoot • • Jul 17 '25

Question What’s Your Go-To Tech Stack for Building a SaaS with Spring Boot?

26 Upvotes

Hi everyone! 👋

I'm planning to launch my own SaaS product soon using Spring Boot, and I’d love to hear from the community about your favorite tools and services when setting up your own SaaS.

More specifically, I’m curious to know:

  • What do you use for authentication (OAuth providers, identity services, etc.)?

  • Which service do you rely on for emailing (transactional + marketing)?

  • What’s your preferred database (PostgreSQL, MongoDB, etc.)?

  • Which hosting/cloud provider do you use (AWS, GCP, Heroku, etc.)?

  • Any other must-have tools in your stack? (e.g. payments, API gateways...)

I’m especially interested in stacks that keep things simple but scalable and that play nicely with Spring Boot.

Thanks in advance for sharing your setup or advice. I really appreciate it! 🙏


r/SpringBoot • • Jun 22 '25

Question How do you deliver your Spring Boot application fast?

26 Upvotes

Hello,

Before starting, I know that every language has its own advantages and disadvantages. I'm just curios how do you handle your boilerplate code. As a person who is coming from laravel ecosystem, I really get used to have basic/default things as built-in. I know this may be a disadvantage at the same time. Just because having too much core features I lose my patient and passion to my projects (like side projects, hobby projects)

I tried jhipster to do just for jwt and considered to write a starter-kit for myself

Thanks in advance!


r/SpringBoot • • May 28 '25

Question How are Security and Authentication Handled in Production-Level Spring Boot APIs?

26 Upvotes

I’ve been building APIs using Spring Boot and while I’ve got the basics down (like using Spring Security, JWTs, etc.), I’m really curious how things are done in actual production environments.

When it comes to authentication and securing APIs at scale, what does your setup look like?


r/SpringBoot • • Mar 15 '25

Guide Looking to work in some open source projects

26 Upvotes

I have about 1.5 YOE in spring boot cause of my job. Despite the years of experience, I feel like I only have a beginner knowledge in spring boot, as in my work I'm not getting much development oriented work.

Therefore I'm looking to work in some spring boot projects so that I can improve my skills in it. Iam too blank to start a project of my own, hence I'm looking for some open Source projects that would help me to get more familiar with spring boot.

Please refer me.

Thank you for reading.


r/SpringBoot • • Jan 09 '25

OC Spring boot expertise for Senior Developer

26 Upvotes

If someone wants to claim themself as a spring boot expert at around 3 - 5 years of experience. What are the key areas he/she would be assessed on ?


r/SpringBoot • • Nov 26 '24

Spotify clone

26 Upvotes

I'm a developer in a bank with experience of 4 months approx. I think I'm not growing as we have an older tech stack. So I don't want to slack off the basics of SpringBoot and React JS.

Please guide me, experts on how to create a clone of Spotify using React JS and SpringBoot. What steps should I follow or share resources if you have any?

I thought I'd learn something about system design as well through this project. Please guide me. Thank you!


r/SpringBoot • • Oct 24 '24

How to use multiple databases in Spring using JDBC and JPA?

26 Upvotes

Usually, when we connect to multiple databases, we map them using JPA. But in this case, we will have two databases accessed using JDBC and one database accessed with JPA. Additionally, in one of the JDBC databases, we will need to change the schema dynamically. Could someone help me? I’ve already seen some tutorials on YouTube and Stack Overflow, and so far, I haven’t been able to figure it out. I’ve been working on this for two weeks now.