Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Regression: Handler method detection reporting ambiguous methods for explicit HEAD mapping [SPR-14182] #18753
Let's start with the reproducing sample first.
The server produces the following exception:
I was caught by surprise to see that as the two methods mentioned —
On Spring 4.2 this works as expected as you can see by downgrading the example to Spring Boot 1.4.0.M1 (by tweaking the version number of the Boot parent in the root project's POM).
Affects: 4.3 RC1
Juergen Hoeller commented
Rossen Stoyanchev, this looks like a side effect of our default HEAD handling against GET methods. While we treat it right invocation-wise if a dedicated HEAD mapping exists, we seem to get confused in the mapping registration phase when the mappings just differ in GET vs HEAD.