Spring Boot and Spring MVC are both parts of the larger Spring Framework, but they serve different purposes.
Spring Boot is a framework that provides a pre-configured environment for creating standalone Spring-based applications. It simplifies the configuration and deployment process, making it easier and faster to create production-ready applications. Spring Boot achieves this by defaulting to sensible configuration values, providing a set of starter dependencies for common use cases, and using embedded servers to simplify deployment.
On the other hand, Spring MVC is a framework that provides a model-view-controller architecture for creating web applications in the Spring Framework. It is especially useful for building RESTful web services and web applications. Spring MVC uses a front controller pattern, which means that all requests are first processed by a central controller (DispatcherServlet) before being forwarded to the appropriate handler method.
In summary, Spring Boot provides a pre-configured environment and reduces the amount of configuration required to create a Spring-based application, while Spring MVC provides a framework for building web applications with a model-view-controller architecture. While Spring Boot can be used with Spring MVC, they are independent frameworks with different goals.