易百教程

18、Spring Boot 中的@RequestMapping 注解是什么?

@RequestMapping 注解用于提供路由信息。它告诉 Spring 任何 HTTP 请求都应该映射到相应的方法。需要在文件中导入 org.springframework.web.annotation 包。