只能进行**get**请求无法进行**post**请求因为默认开启**csrf**跨域拦截,关闭跨域拦截就ok了
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity
//关闭防跨域
.csrf()
.disable();
}