2018-02-26 19:05:53 +08:00
|
|
|
|
## SpringBoot Cache 演示项目
|
|
|
|
|
|
|
|
|
|
基于注解的声明式缓存
|
|
|
|
|
|
2018-09-09 16:00:49 +08:00
|
|
|
|
SpringBoot 2.0的写法有些改变,参考:
|
|
|
|
|
|
|
|
|
|
https://3dot141.com/blogs/20329.html
|
|
|
|
|
|
|
|
|
|
https://my.oschina.net/u/3773384/blog/1795296
|
|
|
|
|
|
2018-02-27 16:38:38 +08:00
|
|
|
|
## 运行
|
|
|
|
|
|
2018-09-09 16:00:49 +08:00
|
|
|
|
本地安装好MySQL 5.7,并执行初始化sql脚本:`resources/sql/t_user.sql`
|
2018-02-27 16:38:38 +08:00
|
|
|
|
|
|
|
|
|
另外还需要安装Redis,配置好`application.yml`文件中的redis地址
|
|
|
|
|
|
|
|
|
|
测试用例:`com.xncoding.service.UserServiceTest.java`
|
|
|
|
|
|
2018-02-26 19:05:53 +08:00
|
|
|
|
## 许可证
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2018 Xiong Neng
|
|
|
|
|
|
|
|
|
|
基于 MIT 协议发布: <http://www.opensource.org/licenses/MIT>
|