WebSecurityConfigurerAdapter

protected WebSecurityConfigurerAdapter()

Creates an instance with the default configuration enabled.

WebSecurityConfigurerAdapter

protected WebSecurityConfigurerAdapter(boolean disableDefaults)

Creates an instance which allows specifying if the default configuration
should be enabled. Disabling the default configuration should be
considered more advanced usage as it requires more understanding of how
the framework is implemented.

Parameters:

disableDefaults - true if the default configuration should be enabled, else
false