Missing URI template variable 'data' for method parameter of type String

写了一个Controller测试时打开网页显示该错误:
这里写图片描述
原因是Controller中@PathVariable与@RequestMapping的变量名不一致:
这里写图片描述
修改即可。

猜你喜欢

转载自blog.csdn.net/qq_14994863/article/details/79865229