spring-boot/spring-boot-project/spring-boot-autoconfigure
Phillip Webb d7ff379fb8 Return 406 status code if welcome page is not accepted
Add `WelcomePageNotAcceptableHandlerMapping` which will return
an HTTP 406 status if a suitable welcome page is found but
cannot be accepted for the request.

An additional mapper is used so that we don't need to change
the order of the `WelcomePageHandlerMapping`. It's possible
that users may have additional root handler mappings
registered to run after the `WelcomePageHandlerMapping`
and we still need to respect those.

Fixes gh-35559
2023-05-18 13:35:49 +01:00
..
src Return 406 status code if welcome page is not accepted 2023-05-18 13:35:49 +01:00
build.gradle Remove assumptions about ordering when comparing JSON in tests 2022-04-08 20:55:54 +01:00