title: Loading data from DB for caching using ehcache and spring to override exisitng caching mechanism
body: <p>I am working on performance improvement of my project (Spring Project,I don't have much experience in spring, around 7 months!), where we found that most of the memory is being utilized while caching. After a few R&amp;D, I found that Ehcache might help me. In my project we have used static HashMap to load the data from DB on the server start and we are using this map throughout the application. I did see a few example of Ecache and Spring (NOT spring boot) but I am unable to understand how do I replace it with my existing code where there are HashMaps everywhere? Also if there is any other advice or suggestion, please post it..I will be of great help..!  there are a few links on stackoverflow about same question, but they don't have answers for them.. Please help..!</p>