Missing URI template variable 'XX' for method parameter of type int

版权声明:欢迎转发,但请注明文章地址. 大力么么哒~ https://blog.csdn.net/weixin_41917449/article/details/82230399

@PathVariable用于告诉Spring URI路径的一部分是您希望传递给方法的值。这是你想要的,还是应该将形式数据的变量发布到URI?

如果您想要表单数据,请使用@RequestParam而不是@PathVariable

猜你喜欢

转载自blog.csdn.net/weixin_41917449/article/details/82230399