My class
@Repository public class UserRepositoryImp implements UserRepository{ private EntityManager entityManager; @Autowired