J
jimgardener
hi
I was trying out spring example in A.Hemrajani's book.
The example creates two application context xml files timex-
servlet.xml,and springtest-applicationcontext.xml both in src/conf
directory and which will be copied to WEB-INF directory during build.
In test code ,this is invoked
new FileSystemXmlApplicationContext("src/conf/springtest-
applicationcontext.xml");
but nowhere in the code, the other xml file ( timex-servlet.xml) is
used like above.Instead the author says,
'Our Spring application context file, timex-servlet.xml, will
automatically be searched for and loaded by Spring for us.'
How does this happen?Can someone explain?
regards,
jim
I was trying out spring example in A.Hemrajani's book.
The example creates two application context xml files timex-
servlet.xml,and springtest-applicationcontext.xml both in src/conf
directory and which will be copied to WEB-INF directory during build.
In test code ,this is invoked
new FileSystemXmlApplicationContext("src/conf/springtest-
applicationcontext.xml");
but nowhere in the code, the other xml file ( timex-servlet.xml) is
used like above.Instead the author says,
'Our Spring application context file, timex-servlet.xml, will
automatically be searched for and loaded by Spring for us.'
How does this happen?Can someone explain?
regards,
jim