String key = "Id#taobao_" + tradeId;
cache.put(key, value);
Long a = 2l;
21
,还是Long型的2
?类A中:public static final String YES = "yes";
类B中:public static final String YES = "y"; A.YES.equals(B.YES) 预期是true,
但实际返回为false,导致线上问题。
public enum SeasonEnum {
SPRING(1), SUMMER(2), AUTUMN(3), WINTER(4);
int seq;
SeasonEnum(int seq){
this.seq = seq;
}
}