Spring has disabled matching path extensions since Spring 5.3. However prior versions can use path extensions for content negotiation.
See mapping suffix in the Spring docs.
Starting in 5.3, by default Spring MVC no longer performs .* suffix pattern matching where a controller mapped to /person is also implicitly mapped to /person.*. As a consequence path extensions are no longer used to interpret the requested content type for the response — for example, /person.pdf, /person.xml, and so on.