Skip to content

Commit f5b4084

Browse files
committed
refactor: use nested builders for exceptionHandling() configuration
Part of #1149
1 parent 2731173 commit f5b4084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ protected void configure(HttpSecurity http) throws Exception {
148148
.invalidateHttpSession(true)
149149
.permitAll()
150150
)
151-
.exceptionHandling()
151+
.exceptionHandling(exceptionHandling -> exceptionHandling
152152
.accessDeniedHandler(getAccessDeniedHandler())
153153
// This entry point handles when you request a protected page and you are
154154
// not yet authenticated
155155
.authenticationEntryPoint(new Http403ForbiddenEntryPoint())
156-
.and()
156+
)
157157
.csrf()
158158
.ignoringAntMatchers(pathsToIgnore)
159159
.and()

0 commit comments

Comments
 (0)