spring BeanUtils複製bean後字段無直問題

把dto拷貝到entity時  phone有時沒拷貝  後來發現 phone爲Long 它的setLong()爲long型  後來改成Long就能夠了it beanUtil.copy(src,dest);  copy 如src和dest都有name屬性 類型不一樣  複製失敗 co
相關文章
相關標籤/搜索