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

23 lines
921 B
Plaintext
Raw Normal View History

2024-05-24 16:09:40 +08:00
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();
//
// }
//
//}