从零开始搭建本身的网站十一:ehcache缓存配置

Springboot添加缓存也是很方便,网站我选择的是ehcache缓存。html 1、导入Gradle依赖 java compile 'org.springframework.boot:spring-boot-starter-cache' compile 'net.sf.ehcache:ehcache' 2、配置代码 spring ​在启动类中添加注解 数据库 @EnableCaching pu
相关文章
相关标签/搜索