id to load is required for loading

 java.lang.IllegalArgumentException: id to load is required for   loading出现这样的错误一般是我们的某个字段为null,我们是运用hibernate的 getSession().get(Example.class,id),而传给该方法的id参数为null,会报id to  load is required for loading错误

你可能感兴趣的:(id to load is required for loading)