WebSecurityConfig.java 591 B

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