📅  最后修改于: 2022-03-11 14:52:38.153000             🧑  作者: Mango
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.cors().and()...
}
}