关于save的判断
为什么repository.put()的值为空就表明保存成功啊
为什么repository.put()的值为空就表明保存成功啊
2018-11-28
参照源码的相关说明
/** * @return the previous value associated with <tt>key</tt>, or * <tt>null</tt> if there was no mapping for <tt>key</tt>. * (A <tt>null</tt> return can also indicate that the map * previously associated <tt>null</tt> with <tt>key</tt>, * if the implementation supports <tt>null</tt> values.) */
举报