org.springframework.orm.jpa.EntityManagerHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder

Java
@SpringBootApplication(exclude = HibernateJpaAutoConfiguration.class)
Source

Also in Java: