r/SpringBoot • • Jul 25 '23

Every Spring Security tutorial leads to deprecated code

Beginner spring learner, created some basic crud app using Spring Data JPA when I decided to learn spring security every tutorial leads to deprecated code.

Even tutorials as late as Jan 2023 Even updated methods such as .authorizeHttpRequest() shown as “deprecated and marked for removal”. I’m so lost and have no idea how to study spring security as even these “updated” methods are already considered deprecated where do I learn the latest Spring Security as a beginner.

74 Upvotes

12 comments sorted by

View all comments

12

u/smokemonstr Jul 25 '23

Try the official docs and guides

9

u/the-twitchy-nut Jul 25 '23

Unfortunately this is the way to go. Unfortunately because I do not find them very user-friendly, but a mixture of spring basics (di, ioc, container, beans) and spring security specifics will help you understand how it all works