Announcement Announcement Module
Collapse
No announcement yet.
Differnce between dispatcher-servlet.xml and spring-servlet.xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Differnce between dispatcher-servlet.xml and spring-servlet.xml

    I have just started Spring MVC. I am little confused that what is the difference between dispatcher-servlet.xml and spring-servlet.xml files.

  • #2
    The name... That is all...

    The DispatcherServlet has a mechanism to find files to load. By default it loads a file called [servletname]-servlet.xml... So in the first case the servlet has the name 'dispatcher' and in the other the name 'spring'... And that is all there is... no more no less.

    Comment


    • #3
      Excellent, thanks.

      Comment

      Working...
      X