According to the JavaDoc for getServletMapping():
Specify the servlet mapping(s) for the DispatcherServlet, e.g. '/', '/app', etc.
According to SpringMVC online reference doc, there are 2 ways to specify a URL for @RequestMapping annotation:
So, does these 2 options apply to getServletMapping() as well? Which one is supported by getServletMapping()? Or both?
Ref:
- Ant path patterns: Ant path style patterns
- URI template: https://www.rfc-editor.org/rfc/rfc6570