DEV Community

Cover image for Debugging Spring Security
Austin Vance for Focused

Posted on Originally published at focused.io

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!

Top comments (0)