java.lang.NoClassDefFoundError: org/hibernate/cache/EntityRegion configuring EHCache

前端 未结 4 747
[愿得一人]
[愿得一人] 2020-12-16 11:21

I\'m trying to add ehcache (v2.6.0) to my Hibernate 4.1.5.SP1 project, but having some configuration issues. Specifically, I\'m getting a ja

4条回答
  •  囚心锁ツ
    2020-12-16 12:05

    ehcache-core files are basically for Hibernate 3.x. Hibernate 4.x comes with its own implementation for ehcache. You don't need to use ehcache explicitly in hibernate 4.x. Here is the best answer for your problem.

    http://web.archive.org/web/20130117102553/http://www.javacraft.org/2012/03/migrate-to-hibernate-4-ehcache.html

提交回复
热议问题