redis 做默认缓存(1)
摘要:依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 配置: server.port=999
阅读全文
posted @
2019-02-25 16:08
lshan
阅读(433)
推荐(0) 编辑
otter 数据同步
摘要:阿里巴巴分布式数据库同步系统(解决中美异地机房) 基本介绍: https://github.com/alibaba/otter 快速使用: https://github.com/alibaba/otter/wiki/QuickStart
阅读全文
posted @
2019-02-22 14:56
lshan
阅读(350)
推荐(0) 编辑
canal 入门(基于docker)&& mysql install
摘要:查看 binlog是否开启 show variables like '%log_bin%' 第一步:安装MySQL:(可以参考:https://my.oschina.net/amhuman/blog/1941540) 命令: sudo docker run -it -d --restart unle
阅读全文
posted @
2019-02-22 12:33
lshan
阅读(808)
推荐(0) 编辑
分布式任务调度平台XXL-JOB
摘要:该项目自带文档,非常之详细 参考:https://www.cnblogs.com/xuxueli/p/5021979.html http://www.xuxueli.com/xxl-job/#/?id=%E3%80%8A%E5%88%86%E5%B8%83%E5%BC%8F%E4%BB%BB%E5%
阅读全文
posted @
2019-02-20 17:04
lshan
阅读(446)
推荐(0) 编辑
阿里巴巴开源项目: canal
摘要:1.1.4 目前最新版版本支持UI :https://github.com/alibaba/canal/wiki/Canal-Admin-Guide 参考:https://www.cnblogs.com/duanxz/p/5062833.html docker 部署canal : https://b
阅读全文
posted @
2019-02-20 11:24
lshan
阅读(215)
推荐(0) 编辑
运行官方mysql 镜像
摘要://目前最新的为mysql8 sudo docker run -itd --restart unless-stopped --net=host --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -v /my/own/datadir:/var/
阅读全文
posted @
2019-02-19 10:22
lshan
阅读(285)
推荐(0) 编辑
RestTemplate的异步使用
摘要:参考:https://blog.csdn.net/yezhuanxu/article/details/53643248 支持异步调用AsyncRestTemplate post请求如何自定义header @RequestMapping("/headerApi")//模拟远程的restful API
阅读全文
posted @
2019-02-14 16:19
lshan
阅读(3193)
推荐(0) 编辑
读取配置文件properties的几种方式
摘要:// Properties properties = PropertiesLoaderUtils.loadAllProperties("properties/LazadaStatusMapping.properties"); Properties properties = PropertiesLoa
阅读全文
posted @
2019-02-14 14:33
lshan
阅读(1991)
推荐(0) 编辑