mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
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:
parent
489e97361c
commit
b21fdd3463
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user