|
|
@ -82,6 +82,7 @@ import org.springframework.security.web.util.matcher.AnyRequestMatcher;
|
|
|
|
@EnableConfigurationProperties
|
|
|
|
@EnableConfigurationProperties
|
|
|
|
@ConditionalOnClass({ EnableWebSecurity.class })
|
|
|
|
@ConditionalOnClass({ EnableWebSecurity.class })
|
|
|
|
@ConditionalOnMissingBean(WebSecurityConfiguration.class)
|
|
|
|
@ConditionalOnMissingBean(WebSecurityConfiguration.class)
|
|
|
|
|
|
|
|
// @ConditionalOnMissingBean(annotation = EnableWebSecurity.class)
|
|
|
|
public class SecurityAutoConfiguration {
|
|
|
|
public class SecurityAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
private static List<String> DEFAULT_IGNORED = Arrays.asList("/css/**", "/js/**",
|
|
|
|
private static List<String> DEFAULT_IGNORED = Arrays.asList("/css/**", "/js/**",
|
|
|
@ -101,7 +102,8 @@ public class SecurityAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnMissingBean({ IgnoredPathsWebSecurityConfigurerAdapter.class })
|
|
|
|
@ConditionalOnMissingBean({ IgnoredPathsWebSecurityConfigurerAdapter.class })
|
|
|
|
@ConditionalOnBean(annotation = EnableWebSecurity.class)
|
|
|
|
// @ConditionalOnBean(annotation = EnableWebSecurity.class)
|
|
|
|
|
|
|
|
@ConditionalOnBean(WebSecurityConfiguration.class)
|
|
|
|
public SecurityConfigurer<Filter, WebSecurity> ignoredPathsWebSecurityConfigurerAdapter() {
|
|
|
|
public SecurityConfigurer<Filter, WebSecurity> ignoredPathsWebSecurityConfigurerAdapter() {
|
|
|
|
return new IgnoredPathsWebSecurityConfigurerAdapter();
|
|
|
|
return new IgnoredPathsWebSecurityConfigurerAdapter();
|
|
|
|
}
|
|
|
|
}
|
|
|
|