All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.minlia.rocket.swagger.configuration.SwaggerResourcesIgnoredConfiguration Maven / Gradle / Ivy

There is a newer version: 2.0.4.1.RELEASE
Show newest version
package com.minlia.rocket.swagger.configuration;//package com.minlia.cloud.swagger.starter.configuration;
//
//import cn.chenhuanming.utils.jwt.JwtSecurityAutoConfiguration;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.annotation.Order;
//import org.springframework.security.config.annotation.web.builders.WebSecurity;
//
///**
// * 添加swagger相关静态资源到spring security ignore清单里面
// */
//@Order(value = 101)
//@Configuration
//@ConditionalOnClass(value = {WebSecurity.class, JwtSecurityAutoConfiguration.class})
//public class SwaggerResourcesIgnoredConfiguration extends
//    JwtSecurityAutoConfiguration {
//
//  @Override
//  public void configure(WebSecurity web) throws Exception {
//        web.ignoring().antMatchers("/swagger-ui.html");
//        web.ignoring().antMatchers("/webjars/**");
//        web.ignoring().antMatchers("/swagger-resources/**");
//  }
//}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy