spring请求设置路径变量

来源:互联网 发布:网络错误代码1004 编辑:程序博客网 时间:2024/05/22 15:29
@RequestMapping("monitoring/{guid}.hb")    public String test(@PathVariable("guid") String guid, Model model) {        Dato dto = service.loadDto(guid);        model.addAttribute("dto", dto);        return "**";    }

注意请求value,和@PathVariable

0 0
原创粉丝点击