java - When will we use applicationContext.xml in Spring? -


why need applicationcontext.xml in spring?

in situation use it? have example?

what difference between applicationcontext.xml , spring-servlet.xml?

how can compare applicationcontext.xml in spring struts.xml in struts easy understanding?

why need applicationcontext.xml in spring?

in days of spring framework, application context i.e various weave , settings necessary bootstrap, coordinate , control objects, done using xml file. although 1 can break various settings , dependency injection several context files, process has been made easier in spring 2.5 , later annotation-driven settings.

what difference between applicationcontext.xml , spring-servlet.xml?

in mvc based project, again if you're not using annotation-driven weaving mechanism project, endpoint servlets can setup in spring-servlet.xml. note name of file self chosen.

how can compare applicationcontext.xml in spring struts.xml in struts easy understanding?

they both similar in terms of they're trying achieve. i.e central location application bootstrap settings. similarly, settings can tiered different files make modular.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -