Spring Boot + 整合Ehcache

1、修改pom.xml

2、创建Ehcahe的配置文件

文件名:ehcahe.xml

位置:src/main/resource/ehcahe.xml

3、修改application.properties文件

4、修改启动类

 5、创建业务层

没加ehcahe

 添加ehcahe

7、测试类

6、修改实体类

 

 

 

posted @ 2019-03-20 00:54  愿世界对你温柔相待  Views(48)  Comments(0)    收藏  举报