通過beanutils.copyproperties可以時間拷貝對象中的值,下面的new string[]{"cid","agreeflag","flag","publishtime","projectnum"}表示的不拷貝的屬性值
copyright copyright = copyrightservice.createcopyright(request, user);
//獲得要修改的course,然後重新設定參數
copyright copyrightindatabase = copyrightservice.findbycopyrightid(copyright.getcid());
beanutils.copyproperties(copyright, copyrightindatabase,
new string[]{"cid","agreeflag","flag","publishtime","projectnum"})