AI Hints
Home›Spring Boot Tutorial›What Spring Boot Is, Where Spring Boot Is Used and How a Web App Works
Spring Boot · Lesson 1 of 120

What Spring Boot Is

Java for the web, made easy.

⏱ 2 min read▶ Video at 0:00🎓 Free
Watch this lesson in the Spring Boot courseWatch on YouTube ↗Full Spring Boot course

Spring Boot is a tool for building Java applications, especially web servers and APIs. It's the most popular way to build back ends with Java.

  • Build Java applications
  • Web servers and APIs
  • The most popular choice

Spring and Spring Boot

Spring is a big Java framework, first released in two thousand and three. A framework is ready made code that your program plugs into. Spring Boot sits on top of Spring, and sets everything up for you, with sensible defaults. So you can start a working web server in minutes.

keyvalue
Springa Java framework, since 2003
Frameworkready-made code you plug into
Spring BootSpring, set up for you
Resulta server in minutes

A first look

Here is a complete Spring Boot endpoint. Don't worry about every word yet. We'll learn each part slowly, in the coming lessons. At Rest Controller says this class answers web requests. At Get Mapping says, when someone visits slash hello, run this method. Whatever the method returns, is sent back. Run it. We start the app, and visit slash hello with curl. The server answers with our greeting.

HelloController.javajava
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "Hello from Spring Boot!";
    }
}
Output
Hello from Spring Boot!
Also uses _curl.sh
curl localhost:8080/hello

What this course covers

We start from zero, one small step at a time. First, how the web works, and our first endpoints. Then a real API, and how Spring connects the pieces. Later, databases, validation, security, testing, and a complete project.

keyvalue
Startwhat a web app is
Basicsendpoints and REST APIs
Corebeans and configuration
Laterdatabases, security, tests, project

Summary

Spring Boot sets up Spring for you, so you can build Java web servers and APIs quickly. Next, where Spring Boot is used in the real world.

Key takeaways
  • Java for the web
  • Spring, set up for you
  • Servers and APIs
Next up: Where Spring Boot Is Used — banks, shops, streaming