1.依赖
2. 创建web控制器 Create a Web Controller
src/main/java/com/example/servingwebcontent/GreetingController.java
src/main/resources/templates/greeting.html
3.运行应用程序 Run the Application
src/main/java/com/example/servingwebcontent/ServingWebContentApplication.java
构建可执行JAR Build an executable JAR
mvnw clean package
4.测试应用 Test the Application
run ServingWebContentApplication 后打开http://localhost:8080/greeting
http://localhost:8080/greeting?name=User
5.添加主页面 Add a Home Page
src/main/resources/static/index.html
restart ServingWebContentApplication



