0

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:

Community
  • 1
  • 1
smwikipedia
  • 61,609
  • 92
  • 309
  • 482

0 Answers0