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