I have an entity containing a List that is thus lazy loaded by default:
List
lazy
interface MyEntityRepository extends CrudRepository
findAllById() uses eager fetch, no customization is needed.
interface MyEntityRepository extends CrudRepository { Optional findAllById(long id); }