RequestMapping注解

用法

把http请求映射到方法上。

@Controller
public class UserController {
    @RequestMapping("/user")
    public String get(){
        return "userId";
    }
}

SpringMVC处理流程

 

posted on 2023-01-23 14:27  王景迁  阅读(19)  评论(0)    收藏  举报

导航