问答详情
源自:3-3 秒杀操作-并发优化-3

put killTime 变量取不到

map.put("killTime",killTime);这个killTime飘红大家有遇到么


提问者:Yingbei 2017-09-04 13:47

个回答

  • 总有贱婢想害朕
    2017-09-10 10:52:53

    Date killTime = new Date();//先赋值呀

    Map<String,Object> map = new HashMap<String, Object>();

    map.put("killTime",killTime);