mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +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 {
|
public static void main(String[] args) throws Exception {
|
||||||
// Set user password to "password" for demo purposes only
|
// Set user password to "password" for demo purposes only
|
||||||
new SpringApplicationBuilder(SampleSecureApplication.class).properties(
|
new SpringApplicationBuilder(SampleSecureApplication.class).properties("security.user.password=password").run(
|
||||||
"security.basic.enabled=false", "security.user.password=password").run(
|
|
||||||
args);
|
args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user