From 4b6a909991e8a95f8807e082fa02eb5e5e94bf60 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 12:35:14 +0000 Subject: [PATCH 1/2] Bump the all-maven-dependencies group across 2 directories with 1 update Bumps the all-maven-dependencies group with 1 update in the / directory: [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot). Bumps the all-maven-dependencies group with 1 update in the /srv directory: [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot). Updates `org.springframework.boot:spring-boot-starter-parent` from 3.4.5 to 3.5.0 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](https://github.com/spring-projects/spring-boot/compare/v3.4.5...v3.5.0) Updates `org.springframework.boot:spring-boot-starter-parent` from 3.4.5 to 3.5.0 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](https://github.com/spring-projects/spring-boot/compare/v3.4.5...v3.5.0) --- updated-dependencies: - dependency-name: org.springframework.boot:spring-boot-starter-parent dependency-version: 3.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all-maven-dependencies - dependency-name: org.springframework.boot:spring-boot-starter-parent dependency-version: 3.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all-maven-dependencies ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b51a5cdc..85d19484 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 3.4.5 + 3.5.0 From 983678fd11716f447bfc7abf06d06ae70ef85c26 Mon Sep 17 00:00:00 2001 From: Marc Becker Date: Mon, 26 May 2025 14:42:41 +0200 Subject: [PATCH 2/2] Fix deprecation --- srv/src/main/java/my/bookshop/config/WebSecurityConfig.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java b/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java index 18bd091b..2233234c 100644 --- a/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java +++ b/srv/src/main/java/my/bookshop/config/WebSecurityConfig.java @@ -1,7 +1,5 @@ package my.bookshop.config; -import static org.springframework.security.web.util.matcher.AntPathRequestMatcher.antMatcher; - import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -9,6 +7,7 @@ import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.web.SecurityFilterChain; +import org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher; @Configuration @ConditionalOnWebApplication @@ -18,7 +17,7 @@ public class WebSecurityConfig { @Bean public SecurityFilterChain configure(HttpSecurity http) throws Exception { - return http.securityMatchers(s -> s.requestMatchers(antMatcher("/swagger/**"))) // + return http.securityMatchers(s -> s.requestMatchers(PathPatternRequestMatcher.withDefaults().matcher("/swagger/**"))) // .csrf(c -> c.disable()).authorizeHttpRequests(a -> a.anyRequest().permitAll()) .build(); }