问题原因 请检查你参数上的注解 是 @RequestParam 还是 @PathVariable 解决方法 @PathVariable :配合 get 方法使用 @RequestParam或不写 :配合 post 方法使用