I\'m trying to use JavaConfig instead of XML configuration for Spring Security. I would like to use @PreAuthorization for declaring access rights.
@PreAuthorization
My Sp
In my case, I have a line super.configure(auth); in the overriding method configure(AuthenticationManagerBuilder auth).
super.configure(auth);
configure(AuthenticationManagerBuilder auth)
After it was removed, the exception is gone.