@Bean public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { return http.authorizeExchange() .matchers(EndpointRequest.to(HealthEndpoint.class, InfoEndpoint.class)) .permitAll().anyExchange().authenticated().and().httpBasic().and() .formLogin().and().build(); }