BAEL-19790: Use GetMapping and rename SecurityConfigurer

This commit is contained in:
Krzysztof Woyke
2019-12-04 09:01:18 +01:00
parent 6d7497cda0
commit c97579a2a5
2 changed files with 8 additions and 6 deletions

View File

@@ -5,11 +5,14 @@ import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
public class SecurityConfigurer extends WebSecurityConfigurerAdapter {
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override
public void configure(HttpSecurity http) throws Exception {
http.csrf()
.disable()
.httpBasic();
.ignoringAntMatchers("/encrypt/**")
.ignoringAntMatchers("/decrypt/**");
super.configure(http);
}
}