Spring vs SpringBoot

hemasai jammana
2 min readApr 11, 2023

--

In the earlier articles, we have seen the spring core contents like Dependency Injection, Configuring the Spring container, Spring Bean, and many more. Now it's time to know the difference between Spring and Spring Boot.

Spring vs SpringBoot

Spring:

  1. Spring is a framework for JEE technologies/ Application framework.
  2. Dependency injection and Dependency lookup is the main feature in spring.
  3. Spring supports XML-driven configuration as an input to the spring IOC container.
  4. We(users) need to create an IOC container explicitly.
  5. Allows developing spring apps using XML-based, Annotation based, and pure Java based.
  6. Doesn't provide an embedded server to use in Web apps.
  7. Doesn’t provide an embedded inMemory Database.
  8. Lightweight because of no configuration.
  9. No support for microservice architecture-based application development.
  10. Spring requires developers to write more code for setting up the application, configuring dependencies, and managing infrastructure.

Spring Boot:

  1. Spring Boot provides an abstraction for the spring framework and simplifies spring application development.
  2. AutoConfiguration (providing common things automatically) is the main feature in spring boot.
  3. Doesn’t support XML-based configuration as an input to the spring IOC container.
  4. we(users) need not create an IOC container explicitly, it gets created automatically using SpringApplication.run().
  5. Supports only one style of configuration which is AutoConfiguration where inputs are supplied through the application.properties.
  6. provides an embedded server tomcat, and Jetty to use web applications.
  7. provides an embedded inMemory database (H2).
  8. Heavyweight because of AutoConfiguration.
  9. support microservice architecture-based application development.
  10. Spring Boot, provides a lot of pre-configured settings that developers can use to get started quickly and reduce boilerplate code.

In simple words
spring framework + embededservers — Configuration = SpringBoot

Please do follow for more articles and learn with me.
Special Thanks to Nitin M who made these all concepts very easy.

--

--

hemasai jammana

Software Engineer, learning and exploring new technologies.