-
Feb 24th, 2012, 06:56 AM
#1
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
-
Feb 24th, 2012, 07:56 AM
#2
I suggest a read of the reference guide which explains that quite nicely...
-
Feb 24th, 2012, 01:56 PM
#3
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
-
Forum Rules