Null value was assigned to a property of primitive type setter of com.founder.common.pojo.AskBuy.del_tag
控制檯報錯信息:
Servlet.service() for servlet default threw exception
java.lang.IllegalArgumentException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
原因:因爲數據庫定義了del_tag爲bit型,而且查詢時數據爲null,hibernate對應的類型是boolean,boolean不能爲空,給del_tag字段添加個0或者1就行了