From 812f54038634d4f42c97c7dd29f89860aebffb8c Mon Sep 17 00:00:00 2001 From: Mathieu Fortin Date: Tue, 3 Mar 2020 17:28:47 -0500 Subject: [PATCH] fixed format --- .../java/org/baeldung/custom/config/SecurityConfig.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spring-security-modules/spring-security-mvc-boot-1/src/main/java/org/baeldung/custom/config/SecurityConfig.java b/spring-security-modules/spring-security-mvc-boot-1/src/main/java/org/baeldung/custom/config/SecurityConfig.java index 955b3bb214..06357650dc 100644 --- a/spring-security-modules/spring-security-mvc-boot-1/src/main/java/org/baeldung/custom/config/SecurityConfig.java +++ b/spring-security-modules/spring-security-mvc-boot-1/src/main/java/org/baeldung/custom/config/SecurityConfig.java @@ -16,11 +16,14 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { protected void configure(final HttpSecurity http) throws Exception { http.csrf() .disable() - .authorizeRequests().anyRequest().authenticated() + .authorizeRequests() + .anyRequest() + .authenticated() .and() - .formLogin().permitAll(); + .formLogin() + .permitAll(); } - + @Bean public PasswordEncoder encoder() { return new BCryptPasswordEncoder(11);