Spring Data Redis NoSuchBeanDefinitionException: No qualifying bean of type
<p>When I try to inject repository that implements CrudRepository from Spring Data Redis, I get NoSuchBeanDefinitionException. </p>

<blockquote>
  <p>Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [bluh.bluh.repository.XxxRepository] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}</p>
</blockquote>

<p>However configuration is there, it's annotated with  <strong>@EnableRedisRepositories("bluh.bluh.repository")</strong></p>

<pre><code>@Configuration
@EnableRedisRepositories
public class ApplicationConfig {

    @Bean
    RedisConnectionFactory connectionFactory() {
        return new JedisConnectionFactory();
    }

    @Bean
    RedisTemplate&lt;?, ?&gt; redisTemplate(RedisConnectionFactory connectionFactory) {

        RedisTemplate&lt;byte[], byte[]&gt; template = new RedisTemplate&lt;&gt;();
        template.setConnectionFactory(connectionFactory);

        return template;
    }

}
</code></pre>

<p>Repository interface looks like:</p>

<pre><code>import org.springframework.data.repository.CrudRepository;

public interface XxxRepository extends CrudRepository&lt;String, String&gt; { }
</code></pre>

<p>I've been through <a href="http://docs.spring.io/spring-data/redis/docs/current/reference/html/" rel="noreferrer">http://docs.spring.io/spring-data/redis/docs/current/reference/html/</a> , there's nothing new for me. I wonder what did I miss and I'll appreciate any inputs.</p>

<p>I use Spring Data Redis 1.7.2.RELEASE, Spring Boot 1.3.6.RELEASE</p>