I have a Spring data repository:
Spring data
@Repository interface SomeRepository extends CrudRepository { Stream streamBy
Using @Transactional(readOnly = true) and public access modifier will solve the issue. Any other access modifier will not work.