Juergen Hoeller opened SPR-15320 and commented
Servlet 4.0 b03 is available now, introducing support for HttpServletRequest.getServletMapping(). As discussed, let's research what we can transparently infer from this when available at runtime, as an alternative to "guessing" about Servlet-level URL mappings in UrlPathHelper. If there isn't any distinct advantage, we can also keep our path-based code as it is, but we should make up our mind in time for 5.0 RC1 here.
Issue Links:
Juergen Hoeller opened SPR-15320 and commented
Servlet 4.0 b03 is available now, introducing support for
HttpServletRequest.getServletMapping(). As discussed, let's research what we can transparently infer from this when available at runtime, as an alternative to "guessing" about Servlet-level URL mappings inUrlPathHelper. If there isn't any distinct advantage, we can also keep our path-based code as it is, but we should make up our mind in time for 5.0 RC1 here.Issue Links: