I keep getting the ConflictingBeanDefinitionException
error in my Spring boot application. I am not entirely sure as to how to address it, I have several @Con
It seems you have two entityManagerFactory, one you will autowire and one you resolve programmatically as Bean:
@Autowired
private LocalContainerEntityManagerFactoryBean entityManagerFactory;
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
...
}
I think you just need your configured Factory in entityManagerFactory() method.