摘要: 项目源码url: https://github.com/zhzhair/rabbitmq-spring-boot.git。 producer项目实现登录的同时发送消息到rabbitMQ,用jmeter并发测试模拟登录; consumer消费rabbitMQ添加登录历史记录到别的数据库(消费服务的项目 阅读全文
posted @ 2019-06-10 23:28 zhzhair-codestyle 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 源码url: https://github.com/zhzhair/tools-spring-boot.git。 1.二维码 2.图片验证码 3.导入导出excel 4.上传文件(包含全局异常处理跳转error页面) 5.jwt 阅读全文
posted @ 2019-06-02 11:16 zhzhair-codestyle 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 源码url: https://github.com/zhzhair/mail-spring-boot.git 1.发送文本邮件; 2.发送html邮件; 3.发送带附件的邮件。 阅读全文
posted @ 2019-06-02 11:03 zhzhair-codestyle 阅读(868) 评论(0) 推荐(0) 编辑
摘要: 源码url: https://github.com/zhzhair/jpa-spring-boot-data.git 基于mysql的jpa的crud:用户反馈,运营回复、忽略,多条件动态查询反馈信息等。 阅读全文
posted @ 2019-06-02 09:46 zhzhair-codestyle 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 源码url: https://github.com/zhzhair/stepsrank-spring-boot.git。 1.创建32个分表,用定时任务插入计步数据模拟用户上传步数; 2.项目启动初始化:将32个表的前200名记录插入mongodb的一个集合(表),清空后插入前200名记录, 并将第 阅读全文
posted @ 2019-06-02 07:47 zhzhair-codestyle 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 源码url: https://github.com/zhzhair/accesslimit-spring-boot.git 注解@AccessLimit 实现接口防刷功能,在方法上的注解参数优先于类上注解的参数; 限流需要在配置文件配置多长时间可以通过多少请求,当然你也可以用guava的限流方式。 阅读全文
posted @ 2019-06-01 18:53 zhzhair-codestyle 阅读(1179) 评论(0) 推荐(0) 编辑
摘要: spring-boot-data-jdbc的RowMapper配置(windows10+jdk8+idea+spring-boot2.1.5)项目url:https://github.com/zhzhair/jdbcrowmapper-spring-boot.git 启动项目初始化RowMapper 阅读全文
posted @ 2019-05-31 22:29 zhzhair-codestyle 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 项目源码url: https://github.com/zhzhair/logaop-spring-boot.git。 不全局写日志的原因:一般情况下,图片、语音、视频等大文件的入参或出参不适合也没必要打印日志! 阅读全文
posted @ 2019-05-31 22:19 zhzhair-codestyle 阅读(2192) 评论(0) 推荐(0) 编辑
摘要: spring-boot-starter封装(windows10+jdk8+idea+spring-boot2.1.5) 项目url:https://github.com/zhzhair/propertiesreader-spring-boot.git 1.封装启动项目读取json文件、xml文件和t 阅读全文
posted @ 2019-05-22 22:07 zhzhair-codestyle 阅读(1450) 评论(0) 推荐(0) 编辑
摘要: 源码地址:https://github.com/zhzhair/mybatis-multidatasource-spring-boot.git 开发环境:windows,jdk8,spring boot2.1.4 登录异步记录日志,登录和记录日志的表在不同的数据库,读写分离对应不同的库等。 阅读全文
posted @ 2019-04-21 13:24 zhzhair-codestyle 阅读(268) 评论(0) 推荐(0) 编辑