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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-04-14 11:00:00 +0000
Seen: 9 times
Last updated: Feb 22 '23
How can the cache be cleared on the client side using React Vite?
In what manner does react-scripts v5 manage the lasting caching created through webpack?
Why are the packages not getting installed with the npm command?
How do I shut down a WPF page and erase its cache?
How to delete cache and cookies on Flutter Web?
Does the Microsoft.Extensions.Caching.Memory.IMemoryCache provide thread safety?
How can I address the issue of NPM ERESOLVE being incapable of resolving the dependency tree?
How to resolve the issue of Puppeteer not being found in the NPM module?