You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public A getAFromCache(long id){
A a = cache.get(A_NAME + id); //热更新时这一句会报 A cannot be cast to A
if(null == a){
a = dao.find(id);
cache.put(A_NAME + id, a)
}
return a;
}
在开发状态下,如果热更新的时候就会报java.lang.ClassCastException。不更新则可以正常运行。控制台无错误信息输出,前台会报HTTP/1.1 500
The text was updated successfully, but these errors were encountered: