spring自带了cache接口,@EnableCaching表示使用cache,我们通过覆盖CachingConfigurerSupport类的cacheManager方法指定用哪种缓存。例如ehcache,rediscache。
確定! 回上一頁