开发服务器接口调用没有问题,部署到测试服务器,有一个接口调用时就出现了这问题:
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.