郁闷了两天了,spring+hibernate查询数据,sql语句在数据库里试过了是正确的,数据库里有数据,但是就是查不出数据。后来仔细看日志文件,恍然大悟,原来是整形字段赋值为null, Null value was assigned to a property of primitive type setter of com.*.*.*.age
Powered by: BlogJava Copyright © 筱 筱