4 ms·
Note that by this definition Spring Boot isn't a framework - you call SpringApplication.run to start it.
by bcrosby95 3y ago
Note that by this definition Spring Boot isn't a framework - you call SpringApplication.run to start it.
- diggan 3y agoForgive my ignorance, I'm not super deep into the Java ecosystem, but is Spring Boot the same as just "Spring"? Or what is the difference precisely?
- bcrosby95 3y agoSpring Boot is a layer on top of Spring that makes it easier to use.
- diggan 3y agoSounds to me like Spring Boot is a library to be used with the framework Spring in that case, as far as I can tell.
- deleted 3y ago[deleted]
- bcrosby95 3y agoIt's more than just a library, there are "starters" that they've developed that will pull in everything you need for certain stuff (such as web, or database, etc), and it will auto-find and configure everything for you. Furthermore, you can hand configure Spring. If anything, the framework here is the Java servlet container, not Spring. Spring just usually lives within that context. And at this point I'm not sure if that's completely true either. It's common to embed the servlet container - this is how Spring Boot works. I assume you can do that with raw Spring considering that's what Boot does, but I never bothered trying because I would just use Spring Boot at that point.
- Sankozi 3y agoSome people jokingly call Spring Boot a framework to manage Spring - another framework. If having a entrypoint function/object is enough to call something a library then both Spring Boot and Spring are just libraries. But in reality they are not - so entrypoint rule is not correct.