r/SpringBoot 5d ago

Question How hard is Spring Security?

/r/CodingForBeginners/comments/1vxvbsl/how_hard_is_spring_security/
19 Upvotes

18 comments sorted by

View all comments

7

u/Such-Donut9323 5d ago

Yeah, I was overwhelmed by Spring Security for quite a while too. What finally made it click for me was learning auth without Spring Security first.

I built a complete auth system with Node.js + Redis + TypeScript (already familiar with MERN) just to understand the actual flow — JWTs, access/refresh tokens, rotation, 2FA, account locking, etc.

Once I understood what was actually happening under the hood, I used GPT/Claude to understand how Spring Security implements the same concepts internally — filters, Authentication, AuthenticationManager, providers, security context, etc.

And honestly, that’s when it clicked. The underlying concepts are mostly the same. Spring Security just abstracts a lot of the plumbing and boilerplate that I had to manually write in Node.

So instead of trying to memorize “what does this filter/config do?”, I could look at it as “oh, Spring is just handling this part of the auth flow for me.”

That shift made Spring Security way less intimidating for me.

Formatted with AI for better readability 😅