No qualifying bean of type [javax.persistence.EntityManager]
The EntityManager interface belongs to JPA and is implemented by JPA providers (such as Eclipse), not Spring, and it has its own injection annotation: @PersistenceContext. EntityManager objects are transaction-scoped and should not be exposed as beans as you’re doing. Instead, either use the JPA annotation to inject the EntityManager: @PersistenceContext EntityManager em; or, since it … Read more