Tuesday, 10 November 2015

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.

No comments:

Post a Comment

Spring boot with CORS

CORS (Cross-Origin Resource Sharing) errors occur when a web application running in a browser requests a resource from a different domain or...