Ambiguous method overloading for method java.lang.Long#minus. Cannot resolve which method to invoke
程序员文章站
2022-07-15 10:52:26
...
Ambiguous method overloading for method java.lang.Long#minus. Cannot resolve which method to invoke
项目上线,第一次成功,第二次就失败。记录下自勉,希望可以一直成长,一直努力!
Long lastUpdate = serviceResult.result?.lastUpdate
if (now - lastUpdate > TimeUtils.TIME_1_HOURS_MILLISECOND) {
accessToken = getDingAccessToken(getSuiteTicket(corpId), corpId)
if (StringUtils.isNotBlank(accessToken)) {
//放入缓存中
cacheService.dingAccessToken.put(tokenKey, ServiceResult.success([accessToken: accessToken, lastuUpdate: now]))
}
}
获取token的代码,出现这错误就很难受,导致所有都出错了。存的时候多打了一个"u"–lastuUpdate
在缓存中拿的时候 ”lastUpdate“就一直报这个错误,相当于
Long a = 2
Long b = null
Long c = a - b
尊重每一行代码,每天进步一点