1import org.springframework.context.annotation.Configuration;
2import org.springframework.security.config.annotation.web.builders.HttpSecurity;
3import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
4import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
5
6@EnableWebSecurity
7@Configuration
8public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
9
10 @Override
11 protected void configure(HttpSecurity http) throws Exception {
12 http.csrf().disable();
13 }
14
15}