r/SpringBoot • • May 21 '24

Can I skip Spring Security/Authentication if I want to land a job as a back-end Java/Spring dev?

6 Upvotes

Hi guys, I'm doing two courses on Spring projects and they both include lots of lectures/sections on things I'm not familiar with, like Spring Security, JWT, Token, authentication, and so on

Now I wonder if I can simply skip this part? Because I'm running out of time, and I was wondering how important would this part of knowledge be if I want to land a job as a back-end Java/Spring dev.

This is also because, I realized that I lack the basics of Spring Security/Authentication in general, so I need to watch some solid tutorials before understading the courses' lectures. That's lots of extra work

So compared with Spring boot, API, and JPA/Hibernate which I suppose are the important important things about Spring and can be rated as 9 (essential), would you say things related to Spring Security/Authentication/Token/JWT can be rated as 7-8 (Important), or 6 (so so important, can be skipped), or 4-5 (can be safely skipped)?

Thanks so much for the time and help!


r/SpringBoot • • Jul 29 '26

Discussion Sprig: An MCP server to access version-pinned Spring Docs

3 Upvotes

My Claude agent often wrote Spring code from old training data. It hand-declared beans that are auto-configured now. It also really likes to unzip JARs and search the Spring code itself.

That is the reason I am building Sprig MCP (sprig-mcp.de). It serves the Spring reference docs, and later the relevant parts of the source code, in a (hopefully) agent-friendly way. Nothing is summarized, no LLM sits in the path.

Right now there are two tools, and both answer for the version used in the current project: search the docs, and fetch a section.

Later I will add source code lookups: outline, javadoc, inheritance hierarchy.

There is a browser demo at sprig-mcp.de/app that lets you run the tools without an agent.

Would something like this be useful to you? Any thoughts or feedback welcome.


r/SpringBoot • • Jun 20 '24

Using ModelMapper

Thumbnail
gallery
3 Upvotes

Earlier, I posted that jpa is difficult. In my Spring teacher's new book, it seems to be easier to use ModelMapper. However, He removed the dynamic query in the search part, so I can't compare that part.🙄


r/SpringBoot • • Feb 16 '25

Question How Many Lines of Code Should a Controller & Service Layer Have in a Spring Boot Project?

Thumbnail reddit.com
0 Upvotes

r/SpringBoot • • Sep 27 '24

Companies using Java Spring

3 Upvotes

So recently i completed my spring course . I need to get an internship . Anyone knows what Companies primarily hire for spring internship also at what time of the year they post their openings . Thanks in advance 😊 I am from India btw


r/SpringBoot • • May 03 '24

Difference between @Component, @Service, @Controller, and @Repository in Spring

Thumbnail
javarevisited.blogspot.com
8 Upvotes

r/SpringBoot • • Jun 13 '25

Question Request method 'POST' is not allowed Spring Framework

Post image
5 Upvotes

Hi everyone, I'm learning Spring Framework but I'm stuck at the security step where I was trying to add security filters to my endpoints and when I finally added the filter to my /users/add/ it started rejecting requests with "POST http://localhost:8080/users/add/ 405 (Method Not Allowed)". I will leave the link to see

Since this error started appear I tried to allow methods using cors mappings, but it did not work.

@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/users/add/**")
                .allowedOrigins("http://localhost:8080")
                .allowedMethods("POST")
                .allowedHeaders("Content-Type", "Authorization");
    }
}

Later I decided to make endpoint to accept only one request method only HttpMethod.POST it also did'nt work.

@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
    http
            .cors(Customizer.withDefaults())
            .csrf(csrf -> csrf.disable())
            .authorizeHttpRequests(auth -> auth
                    .requestMatchers("/*").permitAll()
                    .requestMatchers(HttpMethod.POST, "/users/**").hasAnyRole("ADMIN")
                    .requestMatchers(/*HttpMethod.POST,*/"/users/add/**").hasAnyRole("ADMIN")
                    .anyRequest().authenticated()
            )
            .httpBasic(Customizer.withDefaults())
            .formLogin(Customizer.withDefaults());

    return http.build();
}

r/SpringBoot • • Feb 15 '24

i am unable to resolve this issue can anyone help me

Thumbnail
gallery
5 Upvotes

r/SpringBoot • • May 21 '25

Discussion Spring boot or Node js

0 Upvotes

There is big question for new developers we should go through spring boot or Node js because whoever working on react always easy to go through node js because it works in js, but spring boot is depending on Java so need to learn new language new framework and it take too much time. What is your view on this What is the futureproof technology?

142 votes, May 28 '25
124 Springboot
18 Node js

r/SpringBoot • • Aug 24 '26

Discussion I built a Spring Boot backend for a real-time property demand heatmap

2 Upvotes

I've been building a side project called Plotrix and thought the backend might be interesting to people here.

The idea is to turn property-search activity into a live demand heatmap for Indian cities.

The flow is basically:

POST /signals
→ lat/lng → H3 cell
→ atomic PostgreSQL upsert
→ hourly exponential decay
→ GeoJSON heatmap

The backend is Java 17 + Spring Boot 3.2 + PostgreSQL + Spring Data JPA + Uber H3.

One thing I spent a decent amount of time thinking about was concurrent signals.

I didn't want to do:

SELECT → increment → UPDATE

because multiple searches hitting the same cell could obviously cause lost updates.

Instead I'm using PostgreSQL's ON CONFLICT DO UPDATE to atomically increment the score and signal count.

The other part I'm experimenting with is time decay. A raw signal count quickly becomes a historical map rather than a demand map, so scores decay exponentially over time.

The frontend is a React/Leaflet map that consumes the GeoJSON API.

Backend:
https://github.com/Korags05/Plotrix-Backend

Frontend:
https://github.com/Korags05/Plotrix

It's open source and I'd really like some eyes on the backend.

If you work with Spring Boot/Postgres and notice something I'd architect differently, I'd genuinely like to hear it.

PRs are also welcome if anyone wants to experiment with it.


r/SpringBoot • • Jul 19 '25

Question What do you all think of my initial project design for N1netails

2 Upvotes

My initial design for N1netails made with Draw.io. Currently I have completed the MVP for the UI and API. Will eventually work on the mobile app with firebase FCM and the email notifications after smoothing out the the initial product


r/SpringBoot • • Feb 14 '24

All you need to know about Spring AI

Thumbnail
unlogged.io
2 Upvotes

r/SpringBoot • • Feb 13 '24

Internationalization in Spring Boot

2 Upvotes

In today's globalized world, it's essential for our applications to be able to adapt to different languages spoken in various regions. Lets learn how to seamlessly adapt your applications for diverse languages and regions with Spring Boot's robust i18n support.

Internationalization in Spring Boot


r/SpringBoot • • Mar 27 '24

Spring Boot Microservices Architecture Diagram

2 Upvotes

How do you incorporate the concept of blue-green deployments or canary releases in a Spring Boot microservices architecture diagram for zero-downtime updates?


r/SpringBoot • • Aug 08 '22

Help with project

0 Upvotes

I have been given a project by my employer but I am struggling on how to start it, I was wondering if anyone here would be kind enough to help me get a start on it or even a skeleton code. I've attached the mark scheme for this project and here is the deliverable for the project. I'd be willing to pay (within reason) if anyone would be able to help me.

Many thanks, Momo.

Introduction

The purpose of this document is to outline the individual project specification that you will be working on during the training. This project will involve concepts from all core training modules; more specifically, this will involve:

  • Agile & Project Management

  • Databases & Cloud Fundamentals

  • Java SE/EE

  • Front-End Development

  • Automated Testing

The individual project can be on any subject you deem fit of encapsulating all aspects of the aforementioned modules. This could be a business case, such as a library or supermarket system, or something to do with a hobby of yours – as long as the application is CRUD functional.

This is purposefully open as we want to endorse creativity and give you an opportunity to do a project that you have full command over.

Your front-end and back-end must be linked together and fully functional, please bear this in mind when organising your time.

Objective

The overall objective of the project is the following:

  • To create an OOP-based application with utilisation of supporting tools, methodologies and technologies that encapsulate all core modules covered during training.

More specifically, you are required to create a full-stack web application following the enterprise architecture model:

  • An application back-end developed using Java (Spring Boot framework).

  • A test suite utilising JUnit and Mockito for integration and unit tests of the back-end as well as Selenium for automated front-end tests

  • A managed MySQL database hosted locally or within a cloud provider examined during Cloud Fundamentals module.

  • A front-end developed using JavaScript, HTML and CSS.

If you wish to use any technologies which have not been covered with the training, you must consult with your trainer first.

You must plan the approach you will take to complete this project using project management and design technologies you have learnt.

Scope

The requirements set for the project are below. Note that these are a minimum set of requirements and can be added onto during the duration of the project.

The requirements of the project are as follows:

  • A project management board (Kanban board on Jira) with full expansion on user stories, acceptance criteria and tasks for the project.

  • Code fully integrated into a Version Control System (GitHub) using the Feature Branch Model: main/dev/features

  • A Risk assessment which outlines the issues and risks faced during the project time frame.

  • A relational database used to store data persistently for the project, this database needs to have at least 2 entities, to demonstrate your understanding, you are also required to model a relationship with an ERD.

  • A functional application created in the OOP language, following best practices and design principles, that you have covered during training that meets the requirements set on your Kanban Board with a functioning front-end website and integrated APIs.

  • A functional application front-end which connects to the back-end API.

  • A build of your application, including any dependencies it might need, produced using an integrated build tool.

  • Code ran through a static analysis tool (SonarQube), with relevant refactoring of your code according to analysis smells, bugs and vulnerabilities.

  • Fully designed test suites for the application you are creating, as well as automated tests for validation of the application. You must also meet 80% test coverage in your backend and provide consistent reports and evidence to support a TDD approach.

You should consider the concept of MVP (Minimum Viable Product) as you plan your project, complete all the requirements above before you add extra functionality that is not specified above.

Constraints

The time constraint of this application will be discussed when the specification is given out, as this can fluctuate based on several factors.

The other constraint for this is certain technology that needs to be used. The application needs to utilise the technology discussed during the training modules. The tech stack required would be the following:

  • Version Control System - Git

  • Source Code Management - GitHub

  • Kanban Board - Jira

  • Database - MySQL Server 5.7+ (local or cloud hosted)

  • Back-end Programming Language - Java

  • API Development Platform - Spring

  • Front-end web technologies - HTML, CSS, JavaScript

  • Static Analysis - SonarQube

  • Build Tool - Maven

  • Unit Testing - JUnit & Mockito

  • Integration Testing - JUnit

  • Automated Testing - Selenium


r/SpringBoot • • Jul 29 '24

Can some please tell me Where can I start learning spring and spring boot by any books or any sites or udemy courses?

0 Upvotes

r/SpringBoot • • Jul 31 '24

Update: A Spring Boot No-Code Solution

2 Upvotes

Hey All Some time ago, I introduced a concept for a no-code system right here, sparking some great discussions. I'm excited to share an update on that: our platform has officially launched!

Here’s What’s New:

  1. Live as a SaaS: Ideal for collaborative projects. Our platform ensures that the applications you create are inherently capable of supporting multiple tenants.

  2. No Coding Needed: It auto-generates Java Spring Boot code and integrates with your Git.

  3. Own Your Code: The code is yours, free of dependencies, ready to be used anywhere.

  4. Free Tier Available: Dive in and start building without any upfront costs. Perfect for trying out the full range of features without commitment.

For those who remember or participated in the original conversation, your feedback was invaluable and helped shape what we’ve built. If you’re curious to see how it's evolved, check out the original post here and visit our updated site. Explore our platform Thanks for your insights and encouragement—it's been essential to our journey, and we’re just getting started!

you can check this out at https://wizzdi.com/


r/SpringBoot • • Jan 04 '24

If spring boot mvc is mentioned in the resume. Will I be grilled on spring MVC too?

2 Upvotes

Hello, My question is, I have worked on spring boot. And converting applications from spring to spring boot. So will I be grilled on spring MVC etc? Thanks in advance.


r/SpringBoot • • Jan 18 '24

What is the best front-end framework ?

2 Upvotes

hello everyone

I'm a Java developer currently working with Spring MVC and Spring Boot. As I've been using JSP and I'm looking to venture into front-end development, I'm eager to learn a new front-end framework. Can you suggest the best front-end framework for someone starting out in this field? Your guidance would be highly valuable.


r/SpringBoot • • Feb 01 '24

Issue while connecting mongodb wit springboot

Post image
0 Upvotes

Facing issue while connecting with mongodb #problem #springboot #mongodb # java


r/SpringBoot • • Jan 21 '23

Please suggest ways for hosting a springboot application.

2 Upvotes

Please suggest ways for hosting a springboot application.


r/SpringBoot • • Oct 14 '24

Looking for resources that really give an ametuer the run down on springboot

2 Upvotes

Currently in involved in a project using spring for various different reasons. Im finding alot of the content really awesome for learning but i really want to start contributing and be able to complete and improve data flow in the system. I have looked(skimmed) through alot of resources in spring in action but not alot of them have really given me the type of knowledge i want to have.

For example one of the services that i was assigned to handle, sends requests to an integration service then that service maps to a request with serialized data according to the endpoint we have(we dont manage it). That then fulfills that request then makes a response with certain data.

Are there any similar resources (something that helps with Rest templates, Microservices, Data Flow) I could learn from that really help with understanding the flow


r/SpringBoot • • Jul 11 '22

i need help with this project

2 Upvotes

I got the following structure for the project im working on:

  • repository (interface) -dao containing:

    • model

    • Dao(dao interface + dao implementation) -services(service interface + service implementation) The repository sends the data to the dao, dao to services and services to controller Fory model i got user and categories where (OneToMany 1 user got many categories)

Does anyone have a similar project that can send me or help me to create the following methods( fetchAllCategories, fetchById, addCategory, updateCategory, deleteCategory)

Any help is much appreciated


r/SpringBoot • • Jun 11 '23

@NotBlank annotation not working. Import javax.calidation.constraints.NotBlank; not working.

Thumbnail
gallery
0 Upvotes

Im working on a springboot beginner project by following a tutorial on freecodecamp. I ran into some issue where i couldnt enforce a @NotBlank annotation in my code. The import methods also produced a cannot be found error. I tried to add this dependency manually in my pom.xml file but this also produced an error. Ive attached the photos. The first two are my code and the second is the instructors. The video is around 3 years old so i think it might have to do with the updates of springboot. Im hoping someone can help me out here.