HTTP method is lost when configuring excludes in EndpointRequest by dlwldnjs1009 · Pull Request #49885 · spring-projects/spring-boot (original) (raw)

@bclozel bclozel changed the base branch from main to 3.5.x

April 7, 2026 14:31

@dlwldnjs1009 @bclozel

EndpointRequest.withHttpMethod(...) restrictions are lost when excluding(Class<?>...), excluding(String...), or excludingLinks() are chained because each exclusion creates a new matcher without the configured method.

Preserve the configured HttpMethod in both servlet and reactive matchers and add regression tests for exclusion chaining.

See spring-projectsgh-49885

Signed-off-by: Lee JiWon dlwldnjs1009@gmail.com

@wilkinsona wilkinsona changed the titlePreserve HttpMethod in EndpointRequest exclusions HTTP method is lost when configuring excludes in EndpointRequest

Apr 7, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})