在多表关联关系上加上 @ManyToOne(fetch = FetchType.LAZY,optional=true) @NotFound(action= NotFoundAction.IGNORE) 这个注解