SpringBoot---数据缓存(未完待续)

1、概述

    1.1  在Spring中使用缓存的关键是配置CacheManager,而SpringBoot为我们自动配置了多个CacheManager的实现;

    1.2  SpringBoot的CacheManager的自动配置在org.springframework.boot.autoconfigure.cache包中;

        在不做任何配置的情况下,默认使用的是SimpleCacheConfigure,即使用ConcurrentMapCacheManager;

    1.3  SpringBoot支持以”spring.cache“为前缀的属性来配置缓存:

                      

猜你喜欢

转载自www.cnblogs.com/anpeiyong/p/10441877.html