Name for argument type [java.lang.String] not available......bug处理

来源:互联网 发布:女士dress code 知乎 编辑:程序博客网 时间:2024/06/01 20:56

开发服务器接口调用没有问题,部署到测试服务器,有一个接口调用时就出现了这问题:

Name for argument type [java.lang.String] not available, and parameter name information not found in class file either

之前的代码:

@RequestMapping(value = "/aaa", method = RequestMethod.GET)    public @ResponseBody BaseResponse<Boolean> aaaCheck(            @RequestParam(required = true) String version,            @RequestParam(required = true) String productId) {        ......    }

修改为:

@RequestMapping(value = "/aaa", method = RequestMethod.GET)    public @ResponseBody BaseResponse<Boolean> aaaCheck(            @RequestParam(required = true,value="version") String version,            @RequestParam(required = true,value="productId") String productId) {        ......    }

竟然就行了!!!!!其他接口不这么写也不会报错,就这个接口要这么写,无语了

试一下markdown1.


  1. 哈哈,来一个链接:[推广]. ↩
0 0
原创粉丝点击