For disabling OSIV, we need to set up spring.jpa.open-in-view in application.properties as follows:
spring.jpa.open-in-view=false