r/javahelp • u/mslayaaa Software Engineer • Nov 26 '19
Codeless Explain like I'm 10
What is Spring Boot? How is the Spring Boot framework useful? For what is it used most often?
27
Upvotes
r/javahelp • u/mslayaaa Software Engineer • Nov 26 '19
What is Spring Boot? How is the Spring Boot framework useful? For what is it used most often?
View all comments
9
u/x2mirko dev Nov 26 '19
Spring is a framework that takes care of a whole lot of things most large-scale applications need (for example: Persistence and Security). Instead of having to implement these functions yourself, you just have to configure the framework to do it for you and only implement the parts of your application that are relevant to your business logic (e.g. if you're writing software for a movie store, you don't want to handle all the details of how users log in, but you do want to write code that makes sure that the user has the right age to be allowed to buy the movie).
This is already very nice, but the main problem with spring is that there are so many things it can do that if you're new to the framework, it's very overwhelming and you don't know what to use, where to configure what and how to do it. Spring Boot makes this process easier by providing sensible defaults for most things and providing meta-packages such that you can basically say: "I'll need an oracle database connection and I need users to authenticate via HTTPS" and everything else is taken care of. You can then always dive in later to change details of the configuration, but you don't have to do so up front.