See gh-22154 which removed support for a type-level @RequestMapping annotation alone being sufficient for handler detection.

Comment From: sbrannen

This has been merged into main.

Thanks