Skip to content

Commit 18a2f5d

Browse files
committed
remove open endpoint /actuator/health
1 parent 228e05f commit 18a2f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

srv/src/main/java/my/bookshop/config/WebSecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class WebSecurityConfig {
1818

1919
@Bean
2020
public SecurityFilterChain configure(HttpSecurity http) throws Exception {
21-
return http.securityMatchers(s -> s.requestMatchers(antMatcher("/actuator/health"), antMatcher("/swagger/**"))) //
21+
return http.securityMatchers(s -> s.requestMatchers(antMatcher("/swagger/**"))) //
2222
.csrf(c -> c.disable()).authorizeHttpRequests(a -> a.anyRequest().permitAll())
2323
.build();
2424
}

0 commit comments

Comments
 (0)