Spring緩存機制和Redis的結合

這裏使用reids做爲緩存。 使用Mybatis來操做數據庫。 並使用Spring的@Cacheable,@CachePut,@CacheEvict註解來操做redis緩存。 1 準備環境 包結構 java 1 Spring配置 RootConfig.java @Configuration @ComponentScan(basePackages="cn.wu") @EnableTransactio
相關文章
相關標籤/搜索