2024年8月2日

springboot 19种参数接收方式

摘要: 1. @PathVariable 用来处理URL路径中的参数。 @GetMapping("/user/{id}") public String getUser(@PathVariable String id) { return "User ID: " + id; } 2. @RequestParam 阅读全文

posted @ 2024-08-02 09:27 咚..咚 阅读(2) 评论(0) 推荐(0) 编辑

导航