title: UnsatisfiedDependencyException: Error creating bean with name
body: <p>For several days I'm trying to create Spring CRUD application. I'm confused.
  I can't solve this errors.</p>
  
  <blockquote>
    <p>org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clientController': Unsatisfied dependency expressed through method 'setClientService' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clientService': Unsatisfied dependency expressed through field 'clientRepository'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.kopylov.repository.ClientRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}</p>
  </blockquote>
  
  <p>and this</p>
  
  <blockquote>
    <p>org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'clientService': Unsatisfied dependency expressed through field 'clientRepository'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.kopylov.repository.ClientRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}</p>
  </blockquote>
  
  <p><strong>ClientController</strong></p>
  
  <pre><code>@Controller
  public class ClientController {
  private ClientService clientService;
  
  @Autowired
  @Qualifier("clientService")
  public void setClientService(ClientService clientService){
      this.clientService=clientService;
  }
  @RequestMapping(value = "registration/add", method = RequestMethod.POST)
  public String addUser(@ModelAttribute Client client){
      this.clientService.addClient(client);
  return "home";
  }
  }
  </code></pre>
  
  <p><strong>ClientServiceImpl</strong></p>
  
  <pre><code>@Service("clientService")
  public class ClientServiceImpl implements ClientService{
  
  private ClientRepository clientRepository;
  
  @Autowired
  @Qualifier("clientRepository")
  public void setClientRepository(ClientRepository clientRepository){
      this.clientRepository=clientRepository;
  }
  
  
  
  @Transactional
  public void addClient(Client client){
      clientRepository.saveAndFlush(client);
  }
  }
  </code></pre>
  
  <p><strong>ClientRepository</strong></p>
  
  <pre><code>public interface ClientRepository extends JpaRepository&lt;Client, Integer&gt; {
  
  }
  </code></pre>
  
  <p>I looked through a lot of similar questions, but no one answer to them can't help me.</p>