From 1b08959576ec8355536a1b6a7ec26720a790de79 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Mon, 11 Jan 2021 09:06:42 -0500 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20md=20=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-modules/spring-boot-1st/README.md | 7 ++++--- .../spring-boot-1st/src/main/java/Example.java | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/spring-boot-modules/spring-boot-1st/README.md b/spring-boot-modules/spring-boot-1st/README.md index 6dbda0d5da..d63d5de855 100644 --- a/spring-boot-modules/spring-boot-1st/README.md +++ b/spring-boot-modules/spring-boot-1st/README.md @@ -4,6 +4,7 @@ ### 相关文档: -- [Spring Boot 2.4 示例创建 POM 文件](https://www.ossez.com/t/spring-boot-2-4-pom/1089) -- [Spring Boot 2.4 第一个示例程序添加 Classpath 依赖](https://www.ossez.com/t/spring-boot-2-4-classpath/1098) -- [Spring Boot 2.4 第一个示例程序书写代码](https://www.ossez.com/t/spring-boot-2-4/1099) +- [Spring Boot 第一个示例创建 POM 文件](https://www.ossez.com/t/spring-boot-2-4-pom/1089) +- [Spring Boot 第一个示例程序添加 Classpath 依赖](https://www.ossez.com/t/spring-boot-2-4-classpath/1098) +- [Spring Boot 第一个示例程序书写代码](https://www.ossez.com/t/spring-boot-2-4/1099) +- [Spring Boot 第一个示例的 @RestController 和 @RequestMapping 注解](https://www.ossez.com/t/spring-boot-restcontroller-requestmapping/1100) diff --git a/spring-boot-modules/spring-boot-1st/src/main/java/Example.java b/spring-boot-modules/spring-boot-1st/src/main/java/Example.java index bb84d57893..d50f5309c4 100644 --- a/spring-boot-modules/spring-boot-1st/src/main/java/Example.java +++ b/spring-boot-modules/spring-boot-1st/src/main/java/Example.java @@ -1,5 +1,6 @@ import org.springframework.boot.*; import org.springframework.boot.autoconfigure.*; +import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; @RestController