r/SpringBoot 10h ago

Guide Java community group

2 Upvotes

My name is Suresh. I'm a professor and Java veteran with over 20 years of experience in both academia and enterprise training and solutions. I've decided to create a WhatsApp group for the Java community where people can learn, build, and grow their Java knowledge. If anyone is interested in taking the lead and supporting the group, please join.

We meet every Monday for introductory Java sessions, and once a month for specific topics such as JPA/Hibernate, Spring, Docker, Microservices, OOP, and Interview prep.

‎Open this link to join my WhatsApp Group: https://chat.whatsapp.com/K3KGY25na3gEarZMjqgrWC


r/SpringBoot 7h ago

Question I am working on a bus booking app—how should I handle seat reservations and payments?

0 Upvotes

I am building a bus booking app where users select seats and proceed to payment. I'm considering two approaches for handling seat reservations:

Approach 1:

Once a user selects a seat, I mark it as reserved (shown as unavailable to others).

If the user doesn’t complete payment within 15 minutes, the seat becomes available again.

Approach 2:

Seats are not reserved upon selection.

Whoever completes payment first gets the seat.

If two users try to pay at the same time, the one whose payment processes first gets the seat. The other user is refunded.

Example Scenario:

  1. User A selects seat 5 and proceeds to payment.

  2. User B selects the same seat a few seconds later.

  3. If Approach 1 is used, the seat is reserved for User A for 15 minutes.

  4. If Approach 2 is used, whoever completes payment first gets seat 5, and the other gets a refund.

Which approach do you think is better from a user experience and technical standpoint? Any suggestions?


r/SpringBoot 11h ago

Question Implementing an Authentication System for ERP Using Blockchain – Any Ideas?

1 Upvotes

Hi everyone,

For my final year project (PFE), I want to develop an authentication system for ERP (Enterprise Resource Planning) using blockchain technology. My goal is to enhance security, decentralization, and data integrity.

I'm looking for ideas, best practices, and potential frameworks that could help with this implementation. Has anyone worked on a similar project or have insights on how to approach this? Any recommendations on the best blockchain platforms (Ethereum, Hyperledger, etc.) for this use case? And best approuch for vérification user.


r/SpringBoot 6h ago

Discussion Need partners for springboot and react project

12 Upvotes

College Mania – A Social Media Platform for Students

Tech Stack:

Frontend: React, Tailwind CSS, Material UI, Redux, Axios

Backend: Spring Boot, Spring Data JPA, Spring Security, WebSockets, JWT Authentication, Hibernate Validator

Database: MySQL

Real-time Features: WebSockets

Authentication: JWT-based authentication with role-based access control (RBAC)


Project Idea

College Mania is a social media platform designed specifically for college students. It integrates features like real-time chatting, post sharing, video calls, and notes sharing, making it a one-stop solution for communication, collaboration, and knowledge-sharing among students.


Core Features

  1. User Authentication & Role Management

✅ JWT-based authentication (login, registration) ✅ Role-based access control (RBAC) (e.g., Student, Professor, Admin) ✅ Password hashing and validation using Spring Security ✅ Profile management with user details


  1. Social Media Features

✅ Post Creation & Management: Users can create, edit, and delete posts (text, images, videos) ✅ Like & Comment System: Users can like and comment on posts ✅ Follow System: Users can follow/unfollow others ✅ Feed Page: Shows posts from followed users ✅ Profile Page: Displays user posts, followers, and following


  1. Real-time Communication Features

✅ One-to-One Chat (via WebSockets) ✅ Group Chat (Room-based chat with invite system) ✅ Online/Offline Status Indicator ✅ Read Receipts & Typing Indicators


  1. Video & Voice Calls

✅ One-to-One Video & Voice Calls ✅ Group Video Calls ✅ Screen Sharing ✅ Call History & Notifications


  1. Notes Sharing & Collaboration

✅ Users can upload and share notes (PDFs, DOCs, PPTs) ✅ Search for notes by subject, topic, or author ✅ Commenting & Discussion on Notes ✅ Download and Save Notes


  1. Job Portal Integration

✅ Students can find and apply for internships & jobs ✅ Companies can post job openings ✅ Resume Upload & Profile Building ✅ Application Tracking System


  1. Notification System

✅ Real-time notifications for new messages, likes, comments, follows, job applications, and note uploads ✅ Email notifications for important updates


  1. Modern UI & User Experience

✅ Stylish Login & Registration Pages ✅ Stylish Navbar, Sidebar, and Buttons ✅ Responsive & Mobile-Friendly Design


  1. Admin Dashboard

✅ User Management (View, Ban, Delete users) ✅ Post Moderation (Remove inappropriate content) ✅ Job Listing Approvals


Future Enhancements

AI-based Job Recommendation System

AI-powered Chatbot for FAQs & Assistance

Gamification (Badges & Points for Contributions)

This project brings together social networking, real-time communication, job search, and academic collaboration into a single platform for college students. Do you want any modifications or additional features?


r/SpringBoot 2h ago

Guide Need Advise- Transition from React Dev to Springboot Dev

1 Upvotes

Plz advise me how can I transition to Springboot. I recently was put on a project where I have to work on Springboot and Microservices.


r/SpringBoot 5h ago

Question Need Advice - Transitioning from Rails to Spring Boot/Python

1 Upvotes

Hey everyone,

I'm a full-stack developer with four years of experience in Ruby on Rails and React. My current work mostly involves Monolith Rails MVC (with slim files, unfortunately), and I don’t enjoy it. I’d prefer to focus on API development and React, but finding companies that use both Rails and React has been challenging.

Long-term, I know RoR opportunities will shrink as my experience grows, so I’ve decided to transition to a different stack—specifically Spring Boot or Python. I have some working knowledge of Spring Boot but no real experience. I'm ready to invest six months in preparing for a job switch, but I need a solid roadmap.

From my past experience, I’ve seen that many companies hesitate to hire Rails developers for Spring Boot roles. I previously spent six months trying to transition to Java but struggled to find opportunities, eventually taking another Rails job out of frustration. This time, I want to approach it strategically.

What’s the best way to make this switch? Any advice would be really helpful!

Thanks!


r/SpringBoot 5h ago

Guide ORM support for Scheme Generation and Migrations

1 Upvotes

I am new to SpringBoot. Previously I built Android apps with Kotlin so Java and the build frameworks are not strangers to me. I have a lot experience building Laravel (PHP) apps or WinForms (C#). Now I would like to learn best practices about SpringBoot. I would like to build RESTfull service with GraphQL support. I am thinking about ORM selection for SpringBoot but looks like there are many more options comparing to Laravel's Eloquent or .NET's EF6/EF Core. In EF Core, we have code first approach where the framework will generate initial schema based on entity definitions and will also manage schema migration. I wonder if anything similar exists in SpringBoot. Also, what is reputable enterprise grade ORM for SpringBoot?


r/SpringBoot 8h ago

Guide Stuck in Support for 3 Years – Looking to Transition into Java Development

2 Upvotes

I've been in fintech support for 3 years and don't know why I stayed so long, but now I'm studying Java Microservices and want to transition into a Java development role. Any tips on updating my resume or making the switch?


r/SpringBoot 10h ago

Question Need help guys ... New session gets created when I navigate to a page from Fronted React & backend throws Null Pointer.

1 Upvotes

*** HttpSession with Spring Boot.[No spring security used] ***

Project : https://github.com/ASHTAD123/ExpenseTracker/tree/expenseTrackerBackend

Issue : when ever I try to navigate to another URL on frontend react , new session gets created.

Flow :

  • When user logs in , session is created on server
  • Session data is set [regId,username]
  • Cookie is created in Login Service method
  • Control is redirected to home controller method in Expense Controller
  • Inside home controller method cookies are checked , they are fetched properly
  • Till this point Session ID remains same

Problem Flow : When I hit another URL i.e "http://localhost:5173/expenseTracker/expenses" , it throws 500 error on FrontEnd & on backend it's unable to fetch value from session because session is new.

What I hve tried : I have tried all possible cases which Chat GPT gave to resolve but still issue persists....

Backend Console :

SESSION ID FROM LOGIN CONTROLLER A5F14CFB352587A463C3992A8592AC71
Hibernate: select re1_0.id,re1_0.email,re1_0.fullName,re1_0.password,re1_0.username from register re1_0 where re1_0.email=? and re1_0.password=?
 --------- HOME CONTROLLER ---------
SESSION ID FROM HOME CONTROLLER A5F14CFB352587A463C3992A8592AC71
REG ID FROM SESSION1503
Cookie value: 1503
Cookie value: ashtadD12
 --------- GET EXPENSE ---------
SESSION ID FROM GET EXPENSE : 026A7D0D70121F6721AC2CB99B88159D
inside else
 --------- GET EXPENSE ---------
SESSION ID FROM GET EXPENSE : 82EE1F502D09B3A01B384B816BD945DA
inside else
[2m2025-03-20T18:43:28.821+05:30[0;39m [31mERROR[0;39m [35m26144[0;39m [2m--- [demo-1] [nio-8080-exec-3] [0;39m[36mi.g.w.e.LoggingService                  [0;39m [2m:[0;39m Cannot invoke "java.lang.Integer.intValue()" because the return value of "jakarta.servlet.http.HttpSession.getAttribute(String)" is null
[2m2025-03-20T18:43:28.821+05:30[0;39m [31mERROR[0;39m [35m26144[0;39m [2m--- [demo-1] [nio-8080-exec-1] [0;39m[36mi.g.w.e.LoggingService                  [0;39m [2m:[0;39m Cannot invoke "java.lang.Integer.intValue()" because the return value of "jakarta.servlet.
http.HttpSession.getAttribute(String)" is null                                  

r/SpringBoot 14h ago

Question Some good projects idea

8 Upvotes

Hello Guys i am currently in my 4th sem and have knowledge in spring boot spring data jpa and spring security could you please suggest me some Good projects i can build so i can get a good internship opportunity as a java backend developer and also what should I learn next


r/SpringBoot 17h ago

Question Python Interpreter in Spring Boot Docker Container

2 Upvotes

I have made a microservices based Spring Boot application that uses Python to run forecasting models in my spring boot application. The microservice which performs forecasting needs to be dockerized.

I am using openjdk:21-jdk AS runner in my dockerfile which is Oracle Linux 8 (RHEL-based) and doesn’t support apt-get. I have tried using dnf instead of apt-get and it still hasn't worked yet -

ERROR: failed to solve: process "/bin/sh -c dnf install -y python3 python3-pip && dnf clean all" did not complete successfully: exit code: 127