如何在spring mvc中使用ehcache和hibernate

我是spring-mvc的新手,希望在hibernate中集成ehcache作为二级缓存。 我按照本教程ehcache现在我的hibernate.xml中的条目如下:

  true ehcache.xml true 

ehcache.xml中的条目如下:

      

我们遵循mvc模型,在模型中我定义了annootation

 @Entity @Cache(usage=CacheConcurrencyStrategy.READ_ONLY, region="department") 

现在问题是如何在服务层中开始使用此缓存。 我没有在我的项目中创建hibernateUtil.java。 我们正在使用基于web的spring-hibernate mvc应用程序。 现在如何开始,我没有得到。

这个例子展示了一个集成Spring + Hibernate + EHCache的例子。