0
点赞
收藏
分享

微信扫一扫

错误The operator != is undefined for the argument type(s) long, null

young_d807 2023-04-24 阅读 92


此处报错 if (users.getUsersid() != null)
The operator != is undefined for the argument type(s) long, null

通过Ctrl+左键找到错误源

private long usersid; 

public long getUsersid() { 

 return this.usersid; 

 }


应该是Long
改正之后

private Long usersid; 

public Long getUsersid() { 

 return this.usersid; 

 }

举报

相关推荐

0 条评论