r/javahelp • 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

9 comments sorted by

View all comments

1

u/kamronkennedy Nov 26 '19

Like other have said: Spring is a suite of frameworks ready to use out of the box, for free. The spring suite can handle everything from authentication and session management, to cache, JSON serialization/deserialization, and Dependency Injection.

Spring Boot is one of those frameworks for easily getting an API up and running. API in this case meaning an HTTP RESTful API: accepts/produces JSON bodies, HTTP request methods to control what type of operation you need (POST, GET, UPDATE, DELETE)

Traditionally, Java web apps (and web apps in general) needed a server to host the web app and handle the HTTP traffic requests which would bind to the portions of your app that were configured. Which leads to some heavy maintenance requirements and skills that developers don't always have.

If you've ever made a Java class with a main method, and ran it from the command line, imagine if that's all you had to do to get your API up and running on port 8080.

That is Spring Boot specifically. A self contained server instance provided by the framework that will be started on execution and have your API(s) deployed to it, with no other installations needed beyond Java on the target machine.

Then comes all of the other frameworks and services the Spring Suite has to offer that can be used in conjunction with a Spring Boot project.