IntelligentRecognition/ah-jjsp-service/.svn/pristine/e8/e8c507c088433e06f070d1fc33d...

23 lines
921 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.securityControl.gateway.config;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//
////@Configuration
////@EnableWebSecurity
//public class MyWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapter {
//
// @Override
// protected void configure(HttpSecurity http) throws Exception {
// //CSRF默认支持的方法 GET|HEAD|TRACE|OPTIONS不支持POST 不是我们想要的故取消CSRF防御
// http.csrf().disable();
// http.authorizeRequests()
// .antMatchers("/actuator/**").denyAll()
// .anyRequest().permitAll();
//
// }
//
//}