我正在使用memcache作为Hibernate的二级缓存.我正在使用hibernate-memcached-1.2.4,spymemcached 2.8.0和hibernate 4.1.4.
但是当我尝试使用它时,它给了我错误的说法
Initial sessionfactory creation failedorg.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given, please either disable second level cache or set correct region factory class name to property hibernate.cache.region.factory_class (and make sure the second level cache provider, hibernate-infinispan, for example, is available in the classpath).
Exception in thread "main" java.lang.ExceptionInInitializerError
at Util.HibernateUtil.(HibernateUtil.java:16)
at hibba.AccountDAOimpl.getAccount(AccountDAOimpl.java:23)
at hibba.Connect.main(Connect.java:7)
Caused by: org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given, …