SpringBoot引入spring-boot-starter-security后无法接收前端请求
创建一个新Java文件
@EnableWebSecurity
public class SpringSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable();
}
}