CacheConfig.java 516 B

1234567891011121314151617
  1. package com.izouma.tcg.config;
  2. import org.springframework.cache.CacheManager;
  3. import org.springframework.cache.annotation.EnableCaching;
  4. import org.springframework.cache.support.SimpleCacheManager;
  5. import org.springframework.context.annotation.Bean;
  6. import org.springframework.context.annotation.Configuration;
  7. @EnableCaching
  8. @Configuration
  9. public class CacheConfig {
  10. @Bean
  11. public CacheManager cacheManager() {
  12. SimpleCacheManager manager = new SimpleCacheManager();
  13. return manager;
  14. }
  15. }