//package com.platform.yijia.config;
//


//import org.springframework.beans.factory.annotation.Value;
//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;
//
///***
// * <Title> YiJiaSecurityConfig </Title>
// * <Description> Security相关的自定义配置 </Description>
// * @Author JK
// * @Date 2021年7月2日
// */
//
//@Configuration
//@EnableWebSecurity
//public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
//
//    @Value("${yijia.path.global-prefix}")
//    private String globalPrefix;        //接口前缀：api demo prod
//
//    //静态资源配置
////    @Override
////    public void configure(WebSecurity web) throws Exception {
////        //swagger2所需要用到的静态资源，允许访问
////        web.ignoring().antMatchers("/v2/api-docs",
////                "/swagger-resources/configuration/ui",
////                "/swagger-resources",
////                "/swagger-resources/configuration/security",
////                "/swagger-ui.html");
////    }
//
//    @Override
//    protected void configure(HttpSecurity http) throws Exception {
//        http.authorizeRequests()
//                //.antMatchers("/").permitAll()
//                //.antMatchers("/swagger-ui.html").permitAll()
//                //.anyRequest().authenticated()
//                //.and().logout().permitAll()
//                //.and().formLogin().permitAll()
//                ;
//    }
//}
