Spring Framework Features

This post describes the important features of the spring framework.

Spring Framework Important  Features

The Spring Framework contains the following features:

Lightweight

Spring is described as a lightweight framework when it comes to size and transparency. A lightweight framework helps in reducing complexity in application code. It also helps in avoiding unnecessary complexity in its own functioning. A lightweight framework won't have a high startup time and will run in any environment. A lightweight framework also won't involve huge binary dependencies.

Non-intrusive

This means that your domain logic code has no dependencies on the framework itself. The Spring Framework is designed to be non-intrusive. The object in a Spring-enabled application typically has no dependencies on any predefined interface or class given by Spring API. Thus, Spring can configure application objects that don't import Spring APIs.

Inversion of Control (IoC)

Spring's container is a lightweight container that contains Spring beans and manages their life cycle. The core container of the Spring Framework provides an implementation for IoC supporting injection. IoC is an architectural pattern that describes the Dependency Injection that needs to be done by an external entity rather than creating the dependencies by the component itself. Objects are passively given their dependencies rather than creating dependent objects for themselves.

Read more at https://www.javaguides.net/2018/10/spring-ioc-container-overview.html.

Aspect-oriented Programming (AOP)

This refers to the programming paradigm that isolates supporting functions from the main program's business logic. It allows a developer to build the core functionality of a system without being aware of additional requirements.

AOP is used in the Spring Framework to provide declarative aspects such as transactions and security. Here, application objects perform business logic and are not responsible for other system concerns such as logging, security, auditing, locking, and event handling. AOP is a method of applying middleware services such as security service and transaction management service on Spring's application.

Read more at https://www.javaguides.net/p/spring-aop-tutorial.html.

JDBC exception handling

The JDBC abstraction layer of the Spring Framework provides an exception hierarchy. It shortens the error handling strategy in JDBC. This is one of the areas where Spring really helps in reducing the amount of boilerplate code we need to write in the exception handling.

Spring MVC Framework

This helps in building robust and maintainable web applications. It uses IoC that provides separation of controller logic. Spring MVC Framework, which is a part of the Spring Framework licensed under the term of Apache license, is an open-source web application framework. Spring MVC Framework offers utility classes to handle some of the most common tasks in web application development.

Read more at https://www.javaguides.net/p/spring-mvc-tutorial.html

Spring Security

This provides a declarative security mechanism for Spring-based applications, which is a critical aspect of many applications.

Read more at https://www.javaguides.net/p/spring-security-tutorial.html.

Other features of Spring

The following are the other features provided by the Spring Framework:

Spring Web Services: This provides a contract-first web services model, whereby service implementations are written to satisfy the service contract.

Spring Batch: This is useful when it's necessary to perform bulk operations on data.

Spring Social: Social networking, nowadays, is a rising trend on the Internet, and more and more applications such as Facebook and Twitter are being outfitted with integration into social-networking sites.

Spring Mobile: Mobile applications are another significant area of software development. Spring Mobile supports the development of mobile web applications.


Comments