pathMatchers() groups reactive HTTP exchanges by request path so each group can receive an authorization rule. section 17.3.1
Use it inside authorizeExchange() on ServerHttpSecurity, then attach rules such as authenticated(), permitAll(), denyAll(), hasRole(), or hasAuthority(). section 17.3.1
Protecting one reactive endpoint
A security chain can require authentication for GET requests to /hello while permitting every other exchange: c.pathMatchers(HttpMethod.GET, "/hello").authenticated().anyExchange().permitAll().
