Switch default security filter back on

If the user sets security.basic.enabled=false he has to remember
to @EnableWebSecurity.  Possibly we could be more helpful about the
exception, but I think this might be pilot error.

Fixes gh-568
This commit is contained in:
Dave Syer 2014-03-25 07:51:25 +00:00
parent 489e97361c
commit b21fdd3463

View File

@ -52,8 +52,7 @@ public class SampleSecureApplication extends WebMvcConfigurerAdapter {
public static void main(String[] args) throws Exception {
// Set user password to "password" for demo purposes only
new SpringApplicationBuilder(SampleSecureApplication.class).properties(
"security.basic.enabled=false", "security.user.password=password").run(
new SpringApplicationBuilder(SampleSecureApplication.class).properties("security.user.password=password").run(
args);
}