From 519495d1d2753bcd875aef2d82c3f7785418dfad Mon Sep 17 00:00:00 2001 From: Marc Becker Date: Thu, 6 Jul 2023 14:27:13 +0000 Subject: [PATCH] Update to CDS Services 2.0.2 --- pom.xml | 6 +++--- srv/src/main/java/my/bookshop/config/WebSecurityConfig.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 9baa5039..deee2202 100644 --- a/pom.xml +++ b/pom.xml @@ -16,12 +16,12 @@ 17 - 2.0.1 - 3.0.7 + 2.0.2 + 3.0.8 4.14.0 3.0.1 3.7.0 - 7.0.0 + 7.0.1 diff --git a/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java b/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java index b2e446b5..346a784f 100644 --- a/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java +++ b/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java @@ -18,8 +18,8 @@ public class WebSecurityConfig { @Bean public SecurityFilterChain configure(HttpSecurity http) throws Exception { - return http.securityMatchers().requestMatchers(antMatcher("/actuator/health"), antMatcher("/swagger/**")) // - .and().csrf().disable().authorizeHttpRequests().anyRequest().permitAll().and() + return http.securityMatchers(s -> s.requestMatchers(antMatcher("/actuator/health"), antMatcher("/swagger/**"))) // + .csrf(c -> c.disable()).authorizeHttpRequests(a -> a.anyRequest().permitAll()) .build(); } }