1 | initial version |
There are several possible solutions to this issue:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-ehcache</artifactId>
<version>${hibernate.version}</version>
</dependency>
<property name="hibernate.cache.provider_class">org.hibernate.cache.ehcache.internal.EhcacheCacheProvider</property>
<cache name="com.mycompany.MyClass" maxEntriesLocalHeap="10000" maxEntriesLocalDisk="5000" eternal="false" timeToLiveSeconds="3600" />
spring.cache.type: ehcache
Ensure that the cache implementation jar files are present in the classpath.
If using Hibernate 5 or later, check if upgrading to Hibernate 5.3 or later solves the issue.
Check if clearing the cache or renaming the old cache region solves the issue.
By following the above steps, one should be able to resolve the issue of being unable to generate the requested service [org.hibernate.cache.spi.CacheImplementor] for Hibernate Cache in Spring Boot.