DEV Community

Boufnichel
Boufnichel

Posted on

Is Spring Boot worth considering over Spring? ?

A feature of Spring Framework that allows managing application's objects dependencies, it's the dependency injection.

But unlike Spring Framework, Spring Boot has no need of XML configuration (spring beans configuration..).

For example, Why do you need to restart you server manually for every code changes and the starter-projects can make it with just one dependency ?

Image description
Spring Boot is a powerful framework that allows developers to quickly create and run Spring-based applications with minimal configuration. It provides a number of features and conventions that make it easier to get started with a new project and to quickly build, test, and deploy your application.

One of the key features of Spring Boot is its starter_projects. Spring Boot provides a number of "starter POMs" that allow developers to quickly add common dependencies to their project(JPA, Devtools, Hibernate...). This can save a lot of time and effort when setting up a new project, as you don't need to manually add and configure all the dependencies. The starter POMs also ensure that you are using the correct versions of the dependencies, which can help to prevent compatibility issues.

Another great feature of Spring Boot is its autoconfiguration. It can automatically configure a lot of the settings and dependencies for your application, based on the libraries you have included in your project. This means that you don't need to spend lots of time configuring your application and can instead focus on writing the code that makes your application unique. The autoconfiguration feature can also help to prevent common configuration mistakes and make it easier to deploy your application to different environments.

Another feature that makes Spring Boot better than Spring Framework is its #embedded_servers. You can run your application on an embedded server, such as Tomcat or Jetty, without the need to set up and configure a separate server(you don't need to add any Library or .JAR files). This can save a lot of time and effort and also makes it easy to deploy your application to different environments.

Finally, Spring Boot includes an #actuator that provides information about the health and performance of your application. This can be very useful for monitoring and troubleshooting your application and also allows you to perform operations such as shutting down the application. This can also help you to quickly identify and fix any problems with your application, which can help to ensure that your application is always running correctly.
All of these features combined make Spring Boot a more opinionated and easy-to-use framework as compared to Spring Framework. It requires minimal configuration and provides many features out of the box, which makes it easy to create and run Spring-based applications. If you are looking to start a new project or to quickly develop and deploy a Spring-based application, then Spring Boot is definitely worth considering.

Top comments (0)