Blog
Debugging Spring Security
Spring Security is notoriously hard to debug and test. One simple trick — adding debug = true to the @EnableWebSecurity annotation — gives you significantly better log output. Just don't use it in production.
Jan 21, 2021

Spring Security is hard to debug and hard to test. Make your life easier with significantly better log output by using debug = true in the EnableWebSecurity annotation:
@EnableWebSecurity(debug = true)
public class CustomConfig extends WebSecurityConfigurerAdapter {
// your config here
}Don't use this in production!
/Contact Us

Modernize your legacy with Focused
Get in touch