3 ms·
Spring MVC and Boot are not the same thing. Spring Boot is a "convention over configuration" framework for modern 12-factor apps. It integrates the other Sprin
by andor 6y ago
Spring MVC and Boot are not the same thing.
Spring Boot is a "convention over configuration" framework for modern 12-factor apps. It integrates the other Spring libraries (like MVC) by providing "starters" that come with a basic configuration. For instance, adding the Spring Security starter package automatically configures Basic Authentication for all endpoints.
Spring MVC is the Servlet-based web library, it includes functionality for serving HTTP endpoints as well as an HTTP client.
This is in contrast to Spring Webflux which is the new reactive web library. It also includes server and client functionality.
Neither are required in a Spring Boot app though.
- ptx 6y agoOne extremely useful part of Spring Boot is spring-boot-starter-parent, which specifies a compatible set of versions for all the various dependencies you're likely to pull in, which is otherwise tricky and tedious.
- jillesvangurp 6y agoI wasn't equating them just merely stating that MVC, Flux, and lots of other things are part of Spring 5.x. Spring Boot technically is basically a lot of auto configuration around a large amount of spring libraries and third party components. You could replicate pretty much all of what it does by adding those dependencies manually and manually configuring them. That's pretty much how Spring used to work before Spring Boot became a thing (been there done that). It's actually not that hard if you keep it simple.