title: Spring boot find autowired on another package
body: <p>I'm developing a Spring Boot application which uses some Spring Data Repository interfaces:</p>
  
  <pre><code>package test;
  @SpringBootApplication
  public class Application implements CommandLineRunner {
  
      @Autowired
      private  BookRepository repository;
      . . .
  }
  </code></pre>
  
  <p>I can see that the BookRepository interface (which follows here) can only be injected if it's in the same package as the Application class:</p>
  
  <pre><code>package test;
  public interface BookRepository extends MongoRepository&lt;Book, String&gt; {
  
      public Book findByTitle(String title);
      public List&lt;Book&gt; findByType(String type);
      public List&lt;Book&gt; findByAuthor(String author);
  
  }
  </code></pre>
  
  <p>Is there any Spring Boot annotation I can apply on my classes to be able to find the BookRepository in another package ?</p>