Java基本类型在类中的默认值 int short long byte char float double boolean 0 0 0 0 ' ' 0.0 0.0 false 因为默认值的存在,则会导致数据库中的null值无法正常返回,从而产生bug。