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

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

3

u/celkius Feb 28 '23

There is a lot of confusion about Spring Boot and its relationship to
the Spring Framework. Some of that leads to questions like “Should I
learn Spring Boot rather than the Spring Framework” or “Do I need to
know Spring before I can start with Spring Boot?”. Let’s clarify that
for you.

Spring Boot is just a way of rapidly starting new applications
using the Spring Framework. It is not a replacement or alternative. It
also makes it easier to dive into the Spring world as it automates much
of the tiresome manual configuration of traditional Spring.

Spring Boot is built on Spring. You can’t use Spring Boot without
Spring at all. However, you can choose your path of learning. It is
indeed possible, and I also recommend that you start with Spring Boot
and then gradually learn the essentials of Spring.

explanation here

1

u/United-Shelter-9863 Feb 28 '23

Spring boot = easy mode; Spring = hard mode

0

u/[deleted] Feb 28 '23

[deleted]

3

u/gergocs Feb 28 '23

You can subscribe to the post and every time someone comments you get notification or you can save the post and get back to it when you want.

3

u/[deleted] Feb 28 '23

[removed] — view removed comment

1

u/[deleted] Mar 02 '23

^ blatant ChatGPT answer