title: org.springframework.beans.factory.UnsatisfiedDependencyException , No qualifying bean of type [edu.sample.service.ItemService]
body: <p>It is spring boot application. i am getting below exception.how resolve it please help me 
      My Controller class is </p>
  
  <pre><code>import edu.sample.model.Item;
  import edu.sample.service.ItemService;
  
  @ComponentScan(basePackages = "edu.*")
  @RestController
  public class ItemController {
  
      @Autowired
      @Qualifier(value="itemService")
      private ItemService itemService;
  
      @RequestMapping(value = "/getAllItems", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
      public ResponseEntity&lt;List&lt;Item&gt;&gt; getAllItems() {
          List&lt;Item&gt; items = itemService.getAllItems();
          return new ResponseEntity&lt;List&lt;Item&gt;&gt;(items, HttpStatus.OK);
      }
  }
  </code></pre>
  
  <p>Service class  is</p>
  
  <pre><code>@Service
  public class ItemServiceImpl implements ItemService {
  
      @Autowired
      ItemDAO itemDAO;
  
      @Override
      public String addItem(Item item) {
          return itemDAO.addItem(item);
      }
  
      @Override
      public String deleteItem(Integer id) {
          return itemDAO.deleteItem(id);
      } 
  
      @Override
      public void updateItem(Item item) {
  
      }
  
      @Override
      public List&lt;Item&gt; getAllItems() {
          return itemDAO.getAllItems();
      }
  
  }
  </code></pre>
  
  <p>And DAO class</p>
  
  <pre><code>@Resource
  public class ItemDAOImpl implements ItemDAO {
  
      @PersistenceContext
      EntityManager entityManager;
  
      @Override
      public String addItem(Item item) {
          entityManager.persist(item);
          return item.getName();
      }
  
      @Override
      public String deleteItem(Integer id) {
          String name=entityManager.find(Item.class, id).getName();
          entityManager.remove(id);
          return name;
      }
  
      @Override
      public void updateItem(Item item) {
  
      }
  
      @Override
      public List&lt;Item&gt; getAllItems() {
          return entityManager.createQuery("from Item").getResultList();
      }
  
  }
  </code></pre>
  
  <p>I get this exception message: </p>
  
  <pre><code>org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'itemController': Unsatisfied dependency expressed through field 'itemService': No qualifying bean of type [edu.sample.service.ItemService] found for dependency [edu.sample.service.ItemService]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=itemService)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [edu.sample.service.ItemService] found for dependency [edu.sample.service.ItemService]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=itemService)}
  </code></pre>