Springboot Authorization use @PreAuthorize(“hasRole(‘USER’)”)
I user this code
What is the reason Spring Security redirecting to /error in this case?
I have a simple SecurityFilterChain configuration and a simple customAuthenticationFilter implementation.