title: How to load @Cache on startup in spring?
body: <p>I'm using spring-cache to improve database queries, which works fine as follows:</p>
  
  <pre><code>@Bean
  public CacheManager cacheManager() {
      return new ConcurrentMapCacheManager("books");
  }
  
  @Cacheable("books")
  public Book getByIsbn(String isbn) {
      return dao.findByIsbn(isbn);
  }
  </code></pre>
  
  <p>But now I want to prepopulate the full book-cache on startup. Which means I want to call <code>dao.findAll()</code> and put all values into the cache. This routine shall than only be scheduled periodically.</p>
  
  <p>But how can I explicit populate a cache when using <code>@Cacheable</code>?</p>