title: How to load cache the data present in a table during server start up
body: <p>I am developing a java web application in which I want to cache all the data present in a table during server start up.</p>
  
  <p>Also if there are any changes in DB values, I wish to refresh the cache (without restarting the server).</p>
  
  <p>I am looking for some material in spring which may help me in achieving that. But I am not able to figure it out.</p>
  
  <p>Please help how can I achieve the same. Also I would like to initialize some beans on server start up.</p>