JAVA-27461 | removing deprecations.

This commit is contained in:
gaepi 2023-11-12 16:45:31 +01:00
parent 0db917b0ce
commit d1675a28f4
2 changed files with 4 additions and 5 deletions

View File

@ -53,11 +53,10 @@ public class EmployeeFunctionalConfig {
@Bean
public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
http.csrf()
.disable()
.authorizeExchange()
.anyExchange()
.permitAll();
http.csrf(csrf -> csrf.disable())
.authorizeExchange(
exchanges -> exchanges.anyExchange().permitAll()
);
return http.build();
}
}