在访问一个接口时,Tomcat 报错
image.png大概意思就是指针无效
在本地访问没什么问题,到服务器就出现问题了
解决:
原来接口:
@GetMapping(value = "/getTableField")
public DataResult getTableField(
String modelName,
@RequestParam(name = "isAddAliasName", required = false) boolean isAddAliasName,
@RequestParam(name = "searchParam", required = false) String searchParam) {
}
现在接口:
@GetMapping(value = "/getTableField")
public DataResult getTableField(
String modelName,
Boolean isAddAliasName,
@RequestParam(name = "searchParam", required = false) String searchParam) {
}
网友评论