October 2017
Intermediate to advanced
396 pages
10h 2m
English
As you already know, Spring provides lots of features, but they are, mostly, disabled. You must enable these feature before using it. If you want to use Spring's cache abstraction in your application, you have to enable this feature. If you are using Java configuration, you can enable cache abstraction of Spring by adding the @EnableCaching annotation to one of your configuration classes. The following configuration class shows the @EnableCaching annotation:
package com.packt.patterninspring.chapter9.bankapp.config;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.concurrent. ConcurrentMapCacheManager; import ...Read now
Unlock full access