异常Name for argument type [java.lang.Long] not available, and parameter name information not found in class file either.
如图:
我出现这个问题是因为觉得eclipse太卡,所以关闭了很多eclipse的插件配置
解决:方案一:在项目名上右键选择Properties—》JavaCompiler—》Add variable attributs...打上对号
方案二:主动声明参数绑定,@RequestParam(value="id")这个加在参数前面表示此参数作为响应参数
如下所示:
public void json(HttpServletResponse response, @RequestParam(value="id") Long id)