How do they differ?
What is Spring?
Spring is a lightweight application framework for Java-based enterprise applications. Various frameworks are supported, including Struts, JSP, and Hibernate.
What is Spring Boot?
Spring Boot enables the development of stand-alone, production-grade Spring applications for Java developers. The framework is based on Java and is used to create microservices.
Comparison based on Usage
Spring makes Java EE development easier so developers are more productive, whereas Spring Boot brings RAD capabilities to the Spring framework to speed up application development.
Comparison based on Server Dependency
For testing Spring projects, we need to set up the servers explicitly, whereas Spring Boot provides built-in or embedded servers such as Tomcat and Jetty.
Comparison based on Type of Application Development
Spring Framework creates loosely coupled applications, while Spring Boot creates standalone applications.
Comparison based on In-memory Database Support
Spring framework is not compatible with in-memory databases, whereas spring Boot supports in-memory databases such as H2.
Comparison based on Boilerplate Code
Spring framework requires too many lines of code (boilerplate code) to perform a simple task, whereas Spring Boot avoids boilerplate code, thereby increasing performance and productivity.
Comparison based on Replication
PostgreSQL replication is synchronous where the master database is synchronized with the slave database, whereas MySQL replication is asynchronous (one-way).
Click below for a detailed comparison between Spring Vs Spring Boot.