Announcement Announcement Module
Collapse
No announcement yet.
DispatchServlet and multiple xml configuration files Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DispatchServlet and multiple xml configuration files

    Hello,

    I want to Spring MVC and other layers ( services, dao ). How can I separate configurations of presentation elements, business services element and dao/persistence elements into several xml configuration files? and how can I configure the DispatchServlet to use these xml files?
    Thanks for your help,
    Thierry

  • #2
    In your web.xml you will have to specify a location for the contexts you're using (except for the XXX-servlet.xml, which will contain your web-related beans). Also, you'll have to add a ContextLoaderListener or ContextLoaderServlet. Using the two you can spread your beans across as many files as you like .

    Have a look at section 3.15 (Creating an ApplicationContext...) of the reference manual, you will find more info there.

    Alef

    Comment


    • #3
      DispatchServlet and multiple xml configuration files

      Thanks a lot for help
      Thierry

      Comment

      Working...
      X