How to disable csrf in Spring using application.properties?
问题 The following property exists: security.enable-csrf=false BUT csrf protection is still on if I add the property to application.properties . What works is to disable it programatically. But I'd prefer properties configuration. Why could it not be working? @Configuration public class AuthConfig extends WebSecurityConfigurerAdapter { @Autowired private UserDetailsService userDetailsService; @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth