SpringMVC中@RequestParam和@PathVariable的作用和区别
在SpringMVC中,两者都是将request的里的参数的的值绑定到controller里得的方法的参数的,区别在与URL请求的写法不同。使用@RequestParam时,URL这样写:http://localhost:8080/path?参数名=参数值使用@PathVariable时,URL这样写:http://localhost:8080/path/参数值@GetMapping...