Back
Blog

Debugging Spring Security

Jan 21, 2021

By Parker Drake

Share:
  • linkedin
  • facebook
  • instagram
  • twitter

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!

Back to Explore Focused Lab
/Contact us

Let’s build better software together