实体类中的有些字段数据库中没有@Transient 可以再字段上方加一个注解: /** 具体内容. */ @Transient private T data; 这个注解引入的包为: import javax.persistence.Transient;