Spring and Spring Boot
The Spring Framework is a set of Java tools for building apps. Spring Boot is a faster way to start with those tools.
Spring in one line
This line names what Spring gives.
System.out.println("Spring gives the parts.");Spring Boot in one line
This line names what Spring Boot adds.
System.out.println("Spring Boot gives the quick start.");Example
public class SpringChoice {
public static void main(String[] args) {
System.out.println("Spring gives the parts.");
System.out.println("Spring Boot gives the quick start.");
}
}Key points
- The Spring Framework gives Java tools for building apps.
- Those tools cover many parts of an app.
- Spring alone needs much setup first.
- Spring Boot adds a ready start on top of Spring.
- A ready start means less setup for the same app.
- Use Spring Boot when you want to start fast.
In this example, the class is named SpringChoice. The main method prints two lines. The first line names what Spring gives. The second line names what Spring Boot adds.
Note
Spring Boot still uses Spring underneath.
Try it Yourself
Edit the code, then press Run.
Running is simulated
Exercise
What does Spring Boot add to Spring?