com.codingapi.springboot.security.configurer.WebSecurityConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot-starter-security Show documentation
Show all versions of springboot-starter-security Show documentation
springboot-starter-security project for Spring Boot
package com.codingapi.springboot.security.configurer;
import com.codingapi.springboot.security.properties.CodingApiSecurityProperties;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer;
@Configuration
@AllArgsConstructor
public class WebSecurityConfigurer implements WebSecurityCustomizer {
private final CodingApiSecurityProperties securityJwtProperties;
@Override
public void customize(WebSecurity web) {
//ignoring security filters request url
web.ignoring().requestMatchers(securityJwtProperties.getIgnoreUrls());
}
}