Results 1 to 3 of 3

Thread: spring-security-samples-tutorial: What mechanism is loading bank-servlet.xml?

  1. #1

    Default spring-security-samples-tutorial: What mechanism is loading bank-servlet.xml?

    Included in the "spring-security-samples-tutorial" sample is a file named WEB-INF/bank-servlet.xml.
    This configuration metadata file is used by the sample to set up two Controllers.

    "bank-servlet.xml" is never referenced in any other configuration file, neither as a context-param in web.xml, nor as an import statement in any other configuration metadata.

    Now I'm curious which mechanism of the Spring Framework loads "bank-servlet.xml".

    Thank you for hints
    Eduard

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    I suggest a read of the reference guide which explains that quite nicely...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    Thanks, I found the relevant section.

    "Upon initialization of a DispatcherServlet, Spring MVC looks for a file named [servlet-name]-servlet.xml in the WEB-INF directory of your web application and creates the beans defined there, overriding the definitions of any beans defined with the same name in the global scope."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •