What is the difference? Specifying a file in context-param vs using import?

girlscamru

New Member
Spring and Hibernate stack.I see that we can specify multiple files in \[code\]web.xml\[/code\] file under \[code\]<context-param>\[/code\] tag.\[code\]<context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/appcontext.xml, hibernateconfig.xml</param-value></context-param>\[/code\]We can also load the config files from \[code\]appcontext.xml\[/code\] file as well:\[code\]appcontext.xml:<import resource="hibernateconfig.xml"/>\[/code\]What is the difference or these two are completely different?Thanks!
 
Top