1)问题:对数据库表的某些列赋予了初始值,但是在保存的过程中并没有体现这一点。 解决:在hibernate的配置文件hbm.xml中添加dynamic-insert="true"和dynamic-update="true"就可以了