Debugging Spring Security

parkertdrake

Parker Drake

Posted on January 21, 2021

Debugging Spring Security

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
}
Enter fullscreen mode Exit fullscreen mode

Don't use this in production!

💖 💪 🙅 🚩
parkertdrake
Parker Drake

Posted on January 21, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Debugging Spring Security
security Debugging Spring Security

January 21, 2021