從零開始搭建本身的網站十一:ehcache緩存配置

Springboot添加緩存也是很方便,網站我選擇的是ehcache緩存。html 1、導入Gradle依賴 java compile 'org.springframework.boot:spring-boot-starter-cache' compile 'net.sf.ehcache:ehcache' 2、配置代碼 spring ​在啓動類中添加註解 數據庫 @EnableCaching pu
相關文章
相關標籤/搜索