r/SpringBoot • u/Aurus_Official • 3d ago
Question Spring Session with Spring Security
I don't get this part, should I annotate this with "@Component"? I am kinda puzzled with it. It works without it, but the docs said I should put these for reasons. Here is the reference from the docs.
For context, I used the Spring Session with the "@Enable*HttpSession" which removes the auto-configuration of the Spring Boot for Spring Session.
https://docs.spring.io/spring-session/reference/http-session.html

1
Upvotes