Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:

Exception :

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ’employeeController’: Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 
[javax.persistence.EntityManagerFactory] is defined




Solution :

you are scanning wrong package for controller class change your package declaration.

160 total views, no views today