spring-boot使用enchache缓存技术实例
https://zhuanlan.zhihu.com/p/57454761
ps.数据库使用mysql,数据库表id字段设置自增,实体类student的id设置自增需要配置后缀,否则报错
ps.使用ehcache时候,配置依赖加入 2.4.8 否则报错,不知道原因,知道的可以留言
<ehcache.version>2.4.8</ehcache.version>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>${ehcache.version}</version>
</dependency>