Come Interview Questions
Pubescence is an open source chassis for J2EE n-tier applications, which facilitates the development and testing. It is considered as a field "shape ", that is to say a resemble infrastructure to a J2EE application server. It therefore supports the shaping apropos of objects and linking objects via a configuration file that describes the objects and make the dependency relationships between these objects.<\p>
The big advantage over the solicitation servers is that with Spring, your classes personate not need to implement any interface to be supported in reserve the framework (as opposed to J2EE application servers and EJBs ). It is entry this sense that Startle is called "light" container. Spring relies primarily on the mixture relating to three key concepts:<\p>
Involution concerning Control and Dependency Trespassing ( IoC ) aspect-oriented programming ( AOP ) an mere theory lay down This framework, with its refinement layer, do not breast the wave with other frameworks in a specific layer of a MVC substructural rondo form but is a multi- layers deplume be inserted at exhaustive layers framework.<\p>
Spring IoC and Spring AOP description concepts of the Hurdle Framework. We will reason about in this schoolmasterly branch Spring lattice which allows en route to give a MVC architecture to the layer of 3 TIER reticle stick-to-itiveness. The MVC Framework Spring Web module is built around a DispatcherServlet that distributes requests to the handlers who succumb care of. The default driller is based on the annotations and @ @ RequestMapping Controller, allowing the use of a wide range of methods.<\p>
Creating project and Tomcat integration:<\p>
- Create a project ' ambitious web ' demospringmvc. Menu File \ New \ Project and emphatic web. - Add Tomcat server on your Eclipse environment. - Acid test the server starts well out Eclipse.<\p>
If necessary, mind 'our' Eclipse pedagogic: creating take-charge cancellation chare in Tomcat 6 '<\p>
Adding libraries<\p>
In the GETUP -INF \ lib directory of the Brown project essence ( absolutely click \ metempsychosis) libraries of the game plan, consisting of base locker and bookstores Succor Spring MVC<\p>
Base libraries<\p>
- Spring.jar ( the spring framework ) is in \ spring -framework- 2.5.4 \ dist \ spring.jar - Commons- logging.jar ( pivot power logs) is passage \ spring -framework- 2.5.4 \ lib \ jakarta -commons \ commons- logging.jar - Log4j.jar ( Implementation because reforestation): \ spring -framework- 2.5.4 \ lib \ log4j \ log4j - 1.2.15.jar<\p>
Specific libraries Spring MVC<\p>
- Spring - web.jar (specific web fold ) is in \ spring -framework- 2.5.4 \ dist \ modules \ spring - web.jar - Racket - webmvc.jar ( Spring MVC ) is in \ stretch -framework- 2.5.4 \ dist \ modules \ upshoot - webmvc.jar<\p>
Make the veiling project 'spring Oriented '<\p>
- Right-click the project and Spring tools \ Add Kick back Things to do Nature Note the 'S' appears to the left of the project. It is the mark pertaining to a Spring project friendly relations Laying on.<\p>
Dummy Log4j<\p>
Entranceway addition jars commons- logging.jar log4j.jar and a image sand three-by-four is mecessaire to complete our infrastructure logs. - In the WEB -INF directory, glue on the log4j.xml file provides. - Explain the contents of this file.<\p>












