0% found this document useful (0 votes)
4 views3 pages

Overview of Spring Framework Basics

Spring is a lightweight Java framework that provides dependency injection and inversion of control. It includes modules for web applications, data access, ORM, and AOP. Important annotations include @Required, @Autowired, @Qualifier, and @Resource. Beans are objects managed by Spring that form the backbone of applications. Bean scopes include singleton, prototype, request, session, and global session.

Uploaded by

sachin
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views3 pages

Overview of Spring Framework Basics

Spring is a lightweight Java framework that provides dependency injection and inversion of control. It includes modules for web applications, data access, ORM, and AOP. Important annotations include @Required, @Autowired, @Qualifier, and @Resource. Beans are objects managed by Spring that form the backbone of applications. Bean scopes include singleton, prototype, request, session, and global session.

Uploaded by

sachin
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Q1. What is Spring?

Wikipedia defines the Spring framework as “an application framework and inversion
of control container for the Java platform. The framework’s core features can be
used by any Java application, but there are extensions for building web applications
on top of the Java EE platform.” Spring is essentially a lightweight, integrated
framework that can be used for developing enterprise applications in java.

Q2. Name the different modules of the Spring framework.

Some of the important Spring Framework modules are:

 Spring Context – for dependency injection.


 Spring AOP – for aspect oriented programming.
 Spring DAO – for database operations using DAO pattern
 Spring JDBC – for JDBC and DataSource support.
 Spring ORM – for ORM tools support such as Hibernate
 Spring Web Module – for creating web applications.
 Spring MVC – Model-View-Controller implementation for creating web
applications, web services etc.
Q3. List some of the important annotations in annotation-based
Spring configuration.

The important annotations are:

 @Required
 @Autowired
 @Qualifier
 @Resource
 @PostConstruct
 @PreDestroy

Q4. Explain Bean in Spring and List the different Scopes of Spring
bean.
Beans are objects that form the backbone of a Spring application. They are
managed by the Spring IoC container. In other words, a bean is an object that is
instantiated, assembled, and managed by a Spring IoC container.

There are five Scopes defined in Spring beans.

You might also like