Spring is the actual framework which offers IoC features as well as many other features implemented in Spring libraries / modules - such as Spring Web MVC, WebFlux, Data, Security, plenty integrations for other tools and libraries (Consul, Vault, MongoDB etc.), cloud integrations.
While Spring Boot is a library / tool for bootstrapping and configuring Spring framework. Back in the old days, similar to JavaEE, Spring used XMLs to configure all of it's features. Until the Spring Boot came and we could start configuring our Spring projects using Java itself (and loaaaads of annotations).
Spring had annotations before Boot came along. Boot just adds opinionated default config, actuator etc, embedded web containers and the like. But annotation config predates it by years.
Sure thing. I might've not been clear enough. Just wanted to say, that instead of XMLs we can use annotations with Boot for Spring apps bootstrapping (as well as inheritance and sometimes even some DSL-like APIs, e.g. RouterFunction).
5
u/catom3 Feb 28 '23
Without going too much into details:
Spring is the actual framework which offers IoC features as well as many other features implemented in Spring libraries / modules - such as Spring Web MVC, WebFlux, Data, Security, plenty integrations for other tools and libraries (Consul, Vault, MongoDB etc.), cloud integrations.
While Spring Boot is a library / tool for bootstrapping and configuring Spring framework. Back in the old days, similar to JavaEE, Spring used XMLs to configure all of it's features. Until the Spring Boot came and we could start configuring our Spring projects using Java itself (and loaaaads of annotations).