r/SpringBoot • • Oct 01 '24

Which frontend to use for SpringBoot?

26 Upvotes

I recently learned backend in SpringBoot and have very little knowledge of the front end, only HTML, CSS, and Javascript(Beginner).
Please let me know which technology I should use for the frontend. What are the frontend technologies used by the industry where they have a backend in SpringBoot?


r/SpringBoot • • Sep 16 '24

Best Youtube or udemy Resources for Springboot and microservices

26 Upvotes

I want to learn Springboot and microservices for my job. Suggest any good YT, Udemy resources


r/SpringBoot • • Aug 22 '24

OC which database is mostly used in productions

26 Upvotes

so all devs who are working with spring boot i want to ask you guys a question.
which database is mostly used mysql or oracle


r/SpringBoot • • Jun 08 '24

Spring boot learning path in depth

26 Upvotes

Hi there,

I am looking for a learning path to learn spring, spring boot from zero to mastery(in depth).

Please help me with suggestions/guidance.

Thanks !


r/SpringBoot • • Apr 28 '24

Spring Project Ideas

26 Upvotes

I'm a fresher currently, and want to switch back to API development or full stack roles. I have knowledge of Spring, Spring Boot, JPA, JWT and want to make some medium to advanced level projects and deploy it over to AWS. I have made ecommerce projects in the past, so need some new ideas.


r/SpringBoot • • Mar 25 '26

Question Tried starting Spring Boot and got overwhelmed—what should I learn first?

25 Upvotes

I want to start learning Spring (Spring Boot), but I’m a bit confused about where to begin.

For someone who already knows basic Java, what concepts should I be clear on before starting Spring? Do I need to be strong in things like servlets, JDBC, or design patterns first?

Also, what’s the best way to start learning Spring in a practical way (projects, resources, roadmap)?

Any advice from people who’ve already gone through this would really help 🙏


r/SpringBoot • • Mar 15 '26

How-To/Tutorial What prerequisites should I know before learning Spring/Spring Boot?

25 Upvotes

I’ve already learned core Java, JDBC, and multithreading.

Before I jump into Spring or Spring Boot, what other fundamentals should I make sure I understand well?

Are there specific concepts, tools, or Java features that would make learning Spring much easier (for example: Hibernate, Beans, servlets, etc.)?

Would appreciate suggestions from people who’ve already gone through this path.


r/SpringBoot • • Dec 23 '25

Question Best practices for entity-level authorization in Spring Boot?

25 Upvotes

Hi Spring Boot folks,

I’m building a school management platform and I’m trying to figure out the best way to handle entity-level authorization. Here’s my scenario:

  • I have SchoolAdmin, Classroom, Grade, Subject, and Teacher entities.

  • Only the school admin of a given school should be able to add subjects to classrooms or assign teachers to classrooms.

  • Classrooms belong to grades, grades belong to schools.

Current approaches I found / tried

1.Fetch all grades and classrooms in the admin’s school, flatten lists in Java, and check if the classroom ID exists :

List<Classroom> classrooms = admin.getSchool().getGrades().stream()

.flatMap(grade -> grade.getClassrooms().stream())

.toList();

boolean notInList = classrooms.stream()

.noneMatch(c -> c.getId() == dto.getClassroomId());

2.Repository-level DB check

boolean exists = classroomRepository.existsByIdAndGrade_SchoolId(dto.getClassroomId(), admin.getSchool().getId());
if (!exists) throw new UnauthorizedActionException();

3.Spring Security method-level authorization with PreAuthorize

PreAuthorize("@authService.canModifyClassroom(principal, #classroomId)")

public void assignTeacherToClassroom(Long classroomId, Long teacherId) { ... }

In a real-life enterprise scenario, how do teams usually handle this?Any suggestions for clean, scalable, and maintainable patterns for multi-tenant ownership checks like this?

Thanks in advance for advice or references to best practices!


r/SpringBoot • • Dec 16 '25

Question Roadmap for Java Spring boot

25 Upvotes

I want to learn spring boot. I know java basic and some advanced topics. Would really appreciate if there's some kind of roadmap on what to learn and from where Would appreciate the help


r/SpringBoot • • Dec 08 '25

Discussion Is it realistic to become a professional Spring Boot developer without a degree?

25 Upvotes

I’ve been learning Spring Boot for about a year now and focusing on building projects. For people who went the self-taught path, what skills or areas mattered most to reach a professional level? Any real experiences?


r/SpringBoot • • Dec 02 '25

How-To/Tutorial Spring Data JPA Best Practices: Transactions and Manual Queries

Thumbnail protsenko.dev
25 Upvotes

Hi Spring-lovers community! I have finally completed the series of articles on Spring Data JPA Best Practices. I'm happy to share it with you.
This article covers managing transactions and writing queries with the entity manager.

The latest article has become the longest in the entire series, covering a wider range of problems. If you missed any of the articles in the series, you can find them in my profile or in the article itself.

Also, your feedback is greatly appreciated by me. I hope you find this article helpful.


r/SpringBoot • • Nov 22 '25

Question New Spring project in 2025

25 Upvotes

Hey everyone! I’m about to start a new web app project with a Spring Boot rest backend. Since it’s been a while since I started a new Spring project, I’d love some updated advice for today's best practices.

The backend will need to:

  • Expose REST APIs

  • Handle login with different roles / account creation

  • Manage CRUD for several entities (with role access)

  • Provide some joined/aggregated views

  • Use PostgreSQL or MySQL

  • Run task at specified hours and send emails

Nothing very complex.. In past projects I used libraries like Swagger for api documentation and testing, QueryDSL for type-safe..

This time, I’m wondering what the current best stack looks like. Should I stick with Hibernate + QueryDSL? Is Blaze-Persistence worth it today? Any must-have libraries or tools for a clean, modern Spring Boot setup?

All advice, tips, boilerplate suggestions, or “lessons learned” are super welcome.

Thanks!


r/SpringBoot • • Oct 23 '25

Discussion Frontend guy want to switch to java spring boot

25 Upvotes

Hi guys, I am working as frontend developer (React.js) has an experience of 2.5 years. Now I want to switch to backend where in our organisation we use java spring boot. The problem here is the backend team doesn’t let the frontend guys to explore because they feel they are gonna lose their credibility. So, the question here is I have access to all the backend repos so what do you want me to do in backend I can spent time on our current backend code base and gain the knowledge and make a switch or any suggestions please ?


r/SpringBoot • • Jul 07 '25

Question DTO mapping - presentation vs service layer

25 Upvotes

A pretty basic question - where do you map your entities?
This question emerged once I actually investigated Open Session In View. If I disable it, lazy loaded collections blow up if I try to map in controller (outside the transaction), as I always did. Mapping DTOs in controllers meant keeping presentation and service layers decoupled, services handle business logic and should not be "polluted", which also facilitates multiple frontends without touching service layer.
I am aware that I can use "internal" DTOs for data transfer between layers, but it feels like excessive boilerplate, especially when the mapping is 1:1.

Thanks in advance for sharing your patterns and rationale!


r/SpringBoot • • Jun 11 '25

Discussion Feedback Request: Java Spring Boot Authentication Microservice (JWT)

25 Upvotes

Hi everyone,

I’ve been working on an authentication microservice built with Java, Spring Boot, and JWT, and I’m looking for some feedback from the community!

Originally, I was just going to be using it myself, but then I thought others might be in the same position as me and could use it as well. This is my first open source repo and I'm doing this with the main takeaway of learning from others feedback.

Repo: Gable-github/auth-microservice

Overview:

  • Implements authentication and authorization as a standalone microservice.

  • Uses Spring Boot, Java 17

  • Employs JWT for stateless authentication.

  • Self host for local development using docker. (for now: fork or clone and use with your own CICD and cloud provider)

Looking for feedback on:

  • Code quality and best practices.

  • Security concerns (JWT handling, password storage, etc.).

  • [important] Suggestions for improving architecture or performance, especially as to how to properly design an open source repo that others can easily adopt and use.

Thanks in advance for your time and input!


r/SpringBoot • • May 31 '25

Question what is springboot used for?

25 Upvotes

okay so I think this is kind of a stupid question. for context, i havent started learning springboot yet at all but want to later this summer. i know that springboot is used to make api’s and its like the backend to websites. but my question is, in the industry what specifically is springboot used for? i saw people suggest making crud apps as beginner friendly projects but i’m already making a website that does the crud stuff but with php. im not opposed to using springboot instead of php for this website, but then i’d only have one project on my resume. i was interested in learning web scraping so i thought i’d just do something with springboot and web scraping to kill two birds with one stone but now im not too sure. any advice is welcomed!


r/SpringBoot • • May 31 '25

Guide Multitenant Spring Examples

25 Upvotes

Hey everyone! 👋

I’d like to share two Git repositories that demonstrate how to implement multitenancy in microservices using two different approaches:

🔹 Schema/Database-Based Multitenancy
In this approach, tenants are isolated by using separate database connections — either pointing to different schemas or entirely different databases. It's flexible and ensures a strong level of data isolation.

🔹 Attribute-Based Multitenancy (Row-Level)
Here, tenant identification is handled via an additional column in each table (e.g., tenant_id). What's cool about this implementation is that it's fully abstracted from the developer. From the dev's perspective, it’s as if that column doesn’t even exist — no need to manually handle tenant filtering in queries. It’s all taken care of automatically behind the scenes.

Both implementations support tenant resolution across multiple contexts:

✅ REST requests: tenant ID is extracted from the request headers
✅ SQS queues: tenant ID is extracted from message attributes
✅ Kafka topics: tenant ID is extracted from message headers

The tenant resolution and routing logic are completely abstracted, so developers can focus on building features without worrying about tenant management.

Let me know if you find this useful or if you have any feedback or suggestions!

I'll be happy to share the links and discuss implementation details if anyone is interested.

Schema/Database-Based Multitenancy
Attribute-Based Multitenancy (Row-Level)


r/SpringBoot • • Mar 16 '25

Question Simple implementation of Spring Security with JWT without Resource Server?

25 Upvotes

Hi there. I am wondering if there is a simple guide or way to use JWT alongside Spring Security without requiring an authorization server or creating many classes to handle the validation yourself?

I am aware that a resource server is proper practice on actual projects, but I was wondering if there were simpler ways for small, simple projects such as those suited for beginners who just want to add a simple authentication method to their CRUD application.

In the docs, even the simplest JWT configuration seems to require usage of a Resource Server like keycloak (and you need to provide its issuer URL).

I did look up some guides, and most of them require you to write multiple classes such as a JwtFilter and others to do manual, verbose validation. All these guides end up with the same "boilerplate" code that does this. Here is one example of such a guide: #36 Spring Security Project Setup for JWT

Are there no high-level classes in Spring Security that could handle all this to allow for simple JWT authentication? With the way it's done on guides like these, you do more work configuring this than finishing your entire application, and at the end a beginner probably wouldn't (or even need to) understand what was going on.

Other guides that seem to follow the same or similar boilerplate:

Securing a REST API with Spring Security and JWT

Stateless JWT Authentication with Spring Security | Sergey Kryvets Blog

Spring Boot 3.0 - JWT Authentication with Spring Security using MySQL Database - GeeksforGeeks


r/SpringBoot • • Feb 28 '25

Question How much time is needed to prepare for the Spring Core Certification?

25 Upvotes

Hello everyone,

I'm a Java Spring developer, and I'm considering getting the Spring Certified Professional (Spring Core) certification. I’d love to hear from those who have already passed it.

  • How much time did you need to prepare? (both in terms of total weeks/months and daily/weekly study hours)

  • What resources did you find most helpful? (official guides, courses, mock exams, etc.)

  • Any tips or pitfalls to avoid?

I’d appreciate any insights from certified members. Thanks in advance!


r/SpringBoot • • Sep 09 '24

Too many annotations Swagger

25 Upvotes

I'm working on a Spring Boot project and using Swagger for API documentation. For my DTOs, I've been adding a lot of @Schema annotations to define the API schema properly, but it feels like it's really polluting my code and making the DTOs harder to read.

Is this a common issue, or am I overusing annotations? Are there better practices for integrating Swagger without cluttering the code too much? Any suggestions or alternatives would be appreciated!


r/SpringBoot • • Sep 08 '24

I'm Learning Microservices, I'm Getting Overwhelmed!

25 Upvotes

Timeout, load balancing, rate limiting...

Maybe Because I'm lacking networking fundamentals, right?

If so, what level of networking to be comfortable around those concepts? Network+ or CCNA level?

Thanks!


r/SpringBoot • • Sep 06 '24

Want to collaborate and start working on something good.

25 Upvotes

Hi, I am working as a Software Engineer having 3 yrs of experience in Java Spring Boot and React. Apart from my work, I am trying to start of working on something new that solidifies our understanding of software engineering. If anyone is interested, we can discuss the same and yeah please feel free to bring up your ideas so that we can collaborate and start making it exist.


r/SpringBoot • • Aug 19 '24

Kotlin will be the first language of Spring?

25 Upvotes

@springcentral @springframework @kotlin I have a question. Why are there no examples of Kotlin in the Spring website? What is the attitude of the Spring team towards Kotlin for backend dev? Is it possible to use Kotlin as the primary development language? #spring #kotlin #java


r/SpringBoot • • Jun 29 '24

Well Structured Projects

25 Upvotes

Hello, I am looking for some well-structured Spring Boot projects to learn the best practices of the framework. I would really appreciate any recommendation.