Prev Next

Spring / Spring module questions

1. Explain the Core container module of Spring framework.

This module provides the fundamental functionality of the spring framework. A primary component of the core container module is the BeanFactory which is considered as the heart of any spring-based application. The entire spring framework is built and operated on the top of this core module. This ...

Read full answer

2. What is the Application context module of Spring framework?

The Application context module enables spring as a functional framework. This module extends the concept of BeanFactory, provides the support for internationalization (I18N) messages, application lifecycle events and validation. This module enables many enterprise services such as JNDI access, EJ...

Read full answer

3. Describe AOP module in Spring framework.

Aspect Oriented Programming (AOP) enable OOP to have additional functionalities by intercepting across application modules/features. The key unit of modularity in OOP is the class, whereas in AOP the unit of modularity is the aspect. Spring AOP (Aspect-oriented programming) framework modularize c...

Read full answer

4. What are the features made available in different spring versions.

Annotations driven configuration is introduced in spring 2.5. Spring 3 incorporated Java 5 features. Spring 4 enables full support for Java 8 and the minimum supported Java version is SE 6.

Read full answer

5. Spring framework: Explain the JDBC abstraction and DAO module

JDBC abstraction and DAO module helps keep up the database code clean and simple, prevent problems that result from a failure to close database resources like connections. It provides a layer of meaningful exceptions on top of the error messages thrown by several database servers. It also makes u...

Read full answer

6. Spring framework:Explain the object/relational mapping integration module.

Spring supports use of an object relational mapping (ORM) tool over JDBC by providing the ORM module. Spring provides support to enable several popular ORM frameworks, including Hibernate, JDO, and iBATIS SQL Maps. Spring's transaction management supports each of these ORM frameworks as well as J...

Read full answer

7. Spring framework: Explain the web module.

The Spring web module built on the application context module, provides a context that is appropriate for web-based applications. This module also contains support for several web-oriented tasks such as transparently handling multipart requests for file uploads and programmatic binding of request...

Read full answer

8. Spring framework: Explain the Spring MVC module.

MVC framework is provided by Spring for building web applications. Spring can easily be integrated with other MVC frameworks, but Spring?s MVC framework is a better choice, since it uses IoC to provide for a clean separation of controller logic from business objects. With Spring MVC you can decla...

Read full answer

9. What are the implementations of the ApplicationContext in Spring framework?

The FileSystemXmlApplicationContext container loads the definition of the beans from the Configuration XML file. The full path of the XML bean configuration file must be provided to the constructor. The ClassPathXmlApplicationContext container also loads the definition of the beans from an XML fi...

Read full answer

10. Difference between applicationContext.xml and spring-servlet.xml in Spring Framework.

Spring allows you define multiple contexts in a parent-child hierarchy. The applicationContext.xml defines the beans for the root webapp context, the context associated with the web application. The spring-servlet.xml defines the beans for one servlet's app context. There can be many of these in ...

Read full answer

11. How do you implement inheritance in bean definition?

Bean definition inheritance can be implemented by specifying parent property of the bean equal to its parent bean definition id. This bean class must have extended itself from the parent bean class.

Read full answer

«
»

Comments & Discussions