Lessons 1-4: Write a Hello World to experience Spring Boot

When learning new technologies, we all like to write a Hello World program first. On the one hand, we can verify whether the basic environment is built correctly; on the other hand, we can quickly understand the entire development process. In this lesson, we will learn Spring Boot's first Hello World program.

What is Spring Boot

Spring is introduced on the official homepage as follows:

BUILD ANYTHING.Spring Boot is designed to get you up and running as quickly as possible,with minimal upfront configuration of Spring.Spring Boot takes an opinionated view of building production ready applications.

Chinese translation: Spring Boot can build everything. Spring Boot was originally designed to start and run Spring projects as quickly as possible with minimal configuration. Spring Boot uses specific configurations to build production-ready projects.

Come to a Hello World

(1) You can add it to Spring Initializr, or you can manually add the following code in pom.xml :

<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
</dependency>

There is a module in the pom.xml file by default:

<dependency>
  <groupId>org.springframe

Guess you like

Origin blog.csdn.net/ityouknow/article/details/108729174