Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When to choose Spring Framework?

Tags:

spring

HI,

I would like to know when we have to choose the Spring framework. Is there any clear advantage on choosing the spring framework. I don't want to know the differences, instead of choosing the other technologies like J2EE etc. why we particularly go with Spring?

like image 299
Krishna Avatar asked May 30 '11 06:05

Krishna


People also ask

Why should I use Spring Framework?

Spring makes programming Java quicker, easier, and safer for everybody. Spring's focus on speed, simplicity, and productivity has made it the world's most popular Java framework.

Should I learn Spring Framework in 2021?

Spring Boot offers many advantages to developers such as: – Easy to understand and develop spring applications. – Increases productivity: Flexible configuration of Java Beans, XML, and Database Transactions. – Reduces the development time: Everything is auto configured.

Is Spring framework still relevant 2020?

Today, Java Spring Framework is still among the highly demanded frameworks in the Information Technology world. In 2021, Java Spring Developers used the framework to develop and deploy cloud-based microservices, including data processing applications, web applications, and many more.

Is it worth learning spring in 2022?

Spring Boot is one of the best frameworks for Java developers and if you don't know yet, probably 2022 is the best time to learn Spring Boot.


1 Answers

The question is if you are talking about the core Spring framework, or the family of Spring frameworks. (Spring Batch, Spring MVC, Spring Web Flow, Spring Web Services etc)

Core framework features:

  • Mature dependency injection framework => achieving unit-testability is really easy
  • AOP-support
  • Good IDE support (STS)
  • *Template: utility classes that help doing the most regular things in a very easy and boilerplate-code-free way. (JdbcTemplate, HibernateTemplate, JmsTemplate, etc)
  • Great amount of resources. (videos, blogs, forums, etc)
  • No need for a 'real' application server
  • It's non-intrusive: as far as I know, at the development of any Spring project is a really important point to give the ability to the developer the 'pulling out' of Spring of the project at any given time and leaving as minimal a footprint in the codebase as possible.

But In my opinion its strength and power really shows only when you start to use one of the frameworks I mentioned in the beginning. Basically pick anyone of those and you'll find a really great, actively developed framework for a given set of tasks, with of course deep Spring integration.

like image 58
abalogh Avatar answered Oct 01 '22 14:10

abalogh