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

1

u/MGelit Aug 06 '23

if you look hard enough and go through spring docs you should be able to find an up to date configuration