Skip to content

Commit 8056a7a

Browse files
committed
Updated to Spring Security 5.7.3 - resolved deprecated code - code formatting
1 parent a6b1309 commit 8056a7a

File tree

1 file changed

+21
-21
lines changed
  • 07-spring-security-5/solution-code-spring-security-demo-09-jdbc-bcrypt/src/main/java/com/luv2code/springsecurity/demo/config

1 file changed

+21
-21
lines changed

07-spring-security-5/solution-code-spring-security-demo-09-jdbc-bcrypt/src/main/java/com/luv2code/springsecurity/demo/config/DemoSecurityConfig.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,27 @@ public UserDetailsManager userDetailsService() {
3333
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
3434

3535
return http
36-
.authorizeRequests(configurer ->
37-
configurer
38-
.antMatchers("/").hasRole("EMPLOYEE")
39-
.antMatchers("/leaders/**").hasRole("MANAGER")
40-
.antMatchers("/systems/**").hasRole("ADMIN"))
41-
42-
.formLogin(configurer ->
43-
configurer
44-
.loginPage("/showMyLoginPage")
45-
.loginProcessingUrl("/authenticateTheUser")
46-
.permitAll())
47-
48-
.logout(configurer ->
49-
configurer
50-
.permitAll())
51-
52-
.exceptionHandling(configurer ->
53-
configurer
54-
.accessDeniedPage("/access-denied"))
55-
56-
.build();
36+
.authorizeRequests(configurer ->
37+
configurer
38+
.antMatchers("/").hasRole("EMPLOYEE")
39+
.antMatchers("/leaders/**").hasRole("MANAGER")
40+
.antMatchers("/systems/**").hasRole("ADMIN"))
41+
42+
.formLogin(configurer ->
43+
configurer
44+
.loginPage("/showMyLoginPage")
45+
.loginProcessingUrl("/authenticateTheUser")
46+
.permitAll())
47+
48+
.logout(configurer ->
49+
configurer
50+
.permitAll())
51+
52+
.exceptionHandling(configurer ->
53+
configurer
54+
.accessDeniedPage("/access-denied"))
55+
56+
.build();
5757

5858
}
5959

0 commit comments

Comments
 (0)