r/SpringBoot • u/Cautious_Code_9355 • Jan 12 '26
Question What topics should I cover before starting Spring Security?
Hi everyone,
I’ve recently completed Spring Data JPA and I’m planning to start learning Spring Security next.
I’ve heard that it’s useful to understand some network security and cryptography concepts beforehand (for example: hashing, encryption, JWT, HTTPS, etc.).
Could someone suggest:
- which topics are truly important to know before starting Spring Security, and
- any good resources for learning those topics which can be covered in short time?
Thanks in advance!
Edit - I have completed everything else such as RestAPI , annotations and all. Only security and authorization is left except of course testing and microservices in my knowledge
8
Upvotes
3
u/iamjuhan Jan 12 '26
After testing the topics with a live beginner class, I ordered the topics as follows:
and...
8. spring security
The idea is to understand Spring Security...
* You need to understand component scanning (#1) and the Configuration annotation to understand how your configuration is picked up
* You need to understand input validation (#3), as Spring Security is also about protecting against some of the attacks and input validation is a simpler to understand version of attacks.
* You need to understand the difference between serving web content (#2) and serving api-s (#5) to properly secure them
* You need to know what interceptors (#5) are to better understand the filters that Spring Security uses.
* You need to understand fluent interface (#6) to properly write Spring Security
* You need to understand integration tests (#7) to cover your security configuration with proper tests (to ensure that everything is protected as expected)
I have some more details here:
https://github.com/wisest-dev/wisest-dev-spring-boot-course?tab=readme-ov-file#studying-independently
2
u/devmoosun Jan 12 '26
Congratulations on completing Spring Data JPA.
The next thing I'd learn is building a Spring Boot REST API before Spring Security.
1
u/mi5937 Jan 13 '26
What resources did you use to learn these topics that you covered already?