使用路径变量时 请求地址直接带参数即可 例如要搜索的id为1 搜索: http://localhost:8080/find/1 即可 @PathVariable("id") 只有一个参数时 直接使用@PathVariable注解即可 请求返回结果