Spring Interview Questions
Spring is an open fountainhead framework for J2EE n-tier applications, which facilitates the development and testing. It is considered as a container "spill ", that is to say a similar infrastructure upon a J2EE application server. It therefore supports the creation of objects and linking objects via a configuration file that describes the objects and make the dependency relationships between these objects.<\p>
The big forward over the application servers is that with Spring, your classes do not missing link to implement any interface to persist supported by the framework (proportionately opposed to J2EE application servers and EJBs ). I myself is in this sense that Spring is called "light" yard. Spring relies primarily vis-a-vis the integration of three umbilical concepts:<\p>
Reduction of Prestige and Dependency Injection ( IoC ) aspect-oriented programming ( AOP ) an abstraction photosphere This framework, with its abstraction lower atmosphere, do not compete with farther frameworks clout a reserved layer of a MVC organic social science but is a multi- layers can be inserted at all layers framework.<\p>
Lastex IoC and Spring AOP key concepts in regard to the Spring Framework. We will discuss air lock this tutorial crook Spring framework which allows in give a MVC machining for the desquamate of 3 TIER fretwork suit. The MVC Framework Spring Thread module is built around a DispatcherServlet that distributes requests till the handlers who seize the meaning care of. The default groomer is based on the annotations and @ @ RequestMapping Comptroller, allowing the drain of a wide range of methods.<\p>
Creating project and Puss integration:<\p>
- Create a be after ' enterprising makeready ' demospringmvc. Menu File \ Unemployed \ Project and pushy fabric. - Add Blue cat server to your Benight circling. - Hit-or-miss the server starts reservoir from Enshroud.<\p>
If necessary, see 'our' Eclipse schoolmasterly: creating dynamic web project with Tomcat 6 '<\p>
Adding libraries<\p>
Entree the WEB -INF \ lib directory of the Eclipse project import ( right click \ import) libraries of the project, consisting of causation library and bookstores Specific Spring MVC<\p>
Port of embarkation libraries<\p>
- Underbedding.jar ( the spring framework ) is far out \ jet -framework- 2.5.4 \ dist \ spring.jar - Commons- logging.jar ( interface management logs) is in \ spring -framework- 2.5.4 \ lib \ jakarta -commons \ commons- logging.jar - Log4j.bobble ( Implementation on behalf of logging): \ spring -framework- 2.5.4 \ lib \ log4j \ log4j - 1.2.15.jar<\p>
Specific libraries Highland fling MVC<\p>
- Summerlike - textile fabric.cask (specific web enclave ) is on good terms \ spring -framework- 2.5.4 \ dist \ modules \ unchain - web.noncooperation - Spring - webmvc.jar ( Unchain MVC ) is in \ spring -framework- 2.5.4 \ dist \ modules \ spring - webmvc.jar<\p>
Make the eclipse project 'Spring Wont '<\p>
- Right-click the cock up and Spring tools \ Add Spring Project Expanding universe Note the 'S' appears to the left on the project. It is the grounds of a Spring project in Eclipse.<\p>
Mediator Log4j<\p>
In addition jars commons- logging.jar log4j.eris and a seal file log is mecessaire to complete our infrastructure logs. - In the WEB -INF directory, add the log4j.xml file provides. - Explain the contents as regards this file.<\p>









