错误提示:The method load(Class, Serializable) in the type Session is not applicable for the arguments (Class, int)
代码:session.load(AfficheForm.class, form.getId());
改成:session.load(AfficheForm.class, new Integer(form.getId()));
原因:getId()返回类型是int类型,而load()的第二个参数为Integer。