SpringData - No bean named 'entityManagerFactory' is defined.
MarcinMilewski opened this issue · 1 comments
MarcinMilewski commented
Hi. This exception occurs when I try inject bean of interface which extending Spring data's CrudRepository.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1a6e658': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' is defined
kolorobot commented
@MarcinMilewski Thanks!