spring-data-jpa设置fetchsize

QueryHints

@QueryHints(@javax.persistence.QueryHint(name="org.hibernate.fetchSize", value="50"))
List findAll();

doc

  • Set the fetch size with Spring Data

你可能感兴趣的:(spring-data-jpa设置fetchsize)