Introduction To Spring:
Q. What is Spring?
Spring framework is an open source Java platform that provides comprehensive
infrastructure support for developing robust Java applications very easily and very
rapidly.
It was initially written by Rod Johnson and was first released under the Apache 2.0
license in June 2003.
Spring is lightweight when it comes to size and transparency. The basic version of
Spring framework is around 2MB.
Q. What are Benefits/ Features of Spring Framework?
· Lightweight: Spring is lightweight when it comes to size and transparency. The basic
version of spring framework is around 2MB.
• Inversion of control (IOC): Loose coupling is achieved in Spring, with the Inversion of
Control technique. The objects give their dependencies instead of creating or looking for
dependent objects.
• Aspect oriented (AOP): Spring supports Aspect oriented programming and separates
application business logic from system services.
• Container: Spring contains and manages the life cycle and configuration of application
objects.
• MVC Framework: Spring’s web framework is a well-designed web MVC framework,
which provides a great alternative to web frameworks.
• Transaction Management: Spring provides a consistent transaction management
interface that can scale down to a local transaction and scale up to global transactions
(JTA).
• Exception Handling: Spring provides a convenient API to translate technology-specific
exceptions (thrown by JDBC, Hibernate, or JDO) into consistent, unchecked exceptions.
Q. What are the modules in Spring?
Modules provide different platforms to develop different enterprise applications.
These modules are Spring Core, Spring AOP, Spring Web MVC, Spring DAO, Spring ORM,
Spring context, and Spring Web flow