08-02-2023, 02:05 PM
For those who are not using JPA and instead prefer to exclude the entityManagerFactory and use Spring Data JDBC or Spring JDBC can exclude the bean to avoid the exception
@SpringBootApplication(exclude = {HibernateJpaAutoConfiguration.class})
@SpringBootApplication(exclude = {HibernateJpaAutoConfiguration.class})