You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by daya airody <da...@partnertap.com> on 2018/11/08 10:32:49 UTC
Re: While enabling JCache, JCacheMetrics is throwing
NullPointerException in getCacheManager with spring boot
I commented below line:
#spring.cache.cache-names=users,cannedReports
I am creating cache explicitly in CacheConfiguration class:
if (cm.getCache("users") == null)
cm.createCache("users", cacheConfiguration);
if (cm.getCache("cannedReports") == null)
cm.createCache("cannedReports",
createCustomCacheConfiguration());
This ensures that cache is created according to JCache API.
Now can enable Java method cache using @CacheResult @CacheKey annotations.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/