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!
We’ll use the information you provide to respond to your enquiry. Learn more about how we handle your personal data in our Privacy Policy.
/Contact Us

Modernize your legacy with Focused
Get in touch