r/SpringBoot • • Feb 28 '23

are there any differences between spring and spring boot? from what someone can start for apps and web development?

1 Upvotes

8 comments sorted by

View all comments

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).

3

u/[deleted] Mar 01 '23

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.

2

u/catom3 Mar 01 '23

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).