Spring Boot Introduction
Spring Boot is a tool that builds web apps from Java code. A web app is a program that answers requests from a browser.
The first line of text
This line prints a greeting from the app.
System.out.println("Hello, Spring Boot!");Example
public class Hello {
public static void main(String[] args) {
System.out.println("Hello, Spring Boot!");
}
}Key points
- Spring Boot builds web apps with Java.
- A web app is a program that answers browser requests.
- Spring Boot gives a new app a ready starting shape.
- The ready shape holds the common pieces an app needs.
- A small app needs only a little of your own code.
In this example, the class is named Hello. The main method is the entry point of the program. It prints the text Hello, Spring Boot!
Note
Spring Boot needs Java on the computer first.
Try it Yourself
Edit the code, then press Run.
Running is simulated
Exercise
What is Spring Boot?