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