У меня есть весенний проект с системой ролей. Когда я отправляю запрос put на защищенный ресурс и получаю исключение из-за отказа в доступе, я ожидал перенаправления на страницу html, но у меня есть исключение org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'PUT' not supported
Мой весенний конфиг, csrf отключен
private void commonConfigure(HttpSecurity http) throws Exception {
setupCsrfFilter(http);
http.authorizeRequests().accessDecisionManager(accessDecisionManager())
.antMatchers("/**").hasAnyAuthority(ADMIN)
.and().httpBasic()
.and().jee().j2eePreAuthenticatedProcessingFilter(j2eePreAuthenticatedProcessingFilter())
.mappableAuthorities(ADMIN)
.and().exceptionHandling().accessDeniedPage("/unauthorized.html")
.and().headers().contentTypeOptions()
.and().xssProtection()
.and().frameOptions()
.and().httpStrictTransportSecurity()
.and().contentSecurityPolicy(CONTENT_SECURITY_POLICY);
}