We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2731173 commit f5b4084Copy full SHA for f5b4084
src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java
@@ -148,12 +148,12 @@ protected void configure(HttpSecurity http) throws Exception {
148
.invalidateHttpSession(true)
149
.permitAll()
150
)
151
- .exceptionHandling()
+ .exceptionHandling(exceptionHandling -> exceptionHandling
152
.accessDeniedHandler(getAccessDeniedHandler())
153
// This entry point handles when you request a protected page and you are
154
// not yet authenticated
155
.authenticationEntryPoint(new Http403ForbiddenEntryPoint())
156
- .and()
+ )
157
.csrf()
158
.ignoringAntMatchers(pathsToIgnore)
159
.and()
0 commit comments