解决方式:
@Override
protected void configure(HttpSecurity http) throws Exception 方法中
调用:
http.csrf().disable();//禁用csrf,否则post方法无法访问

解决方式:
@Override
protected void configure(HttpSecurity http) throws Exception 方法中
调用:
http.csrf().disable();//禁用csrf,否则post方法无法访问