摘要: 和其他的定时任务框架比较: 有网页端,可以很方便的修改时间 在线查看日志 本篇文章只讲述如何在开发环境安装XXL-JOB,后续会在 软件安装教程 发布<如何使用Docker安装XXL-JOB>. 参考文档:https://www.jianshu.com/p/fc19b2dfef0e 1.下载XXL- 阅读全文
posted @ 2021-10-28 17:37 LHX2018 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 使用场景: 定时任务报错 消息推送 日志报错提醒 1.导入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependenc 阅读全文
posted @ 2021-10-28 17:21 LHX2018 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 参考文章: https://www.cnblogs.com/hongdada/p/9259965.html https://blog.csdn.net/qq_41890954/article/details/113994681 导入依赖: <dependency> <groupId>com.squa 阅读全文
posted @ 2021-10-28 17:15 LHX2018 阅读(988) 评论(0) 推荐(0) 编辑
摘要: LocalDateTime.now().plusDays(-1).format(DateTimeFormatter.ofPattern("yyyy-MM-dd")) 阅读全文
posted @ 2021-10-28 17:06 LHX2018 阅读(981) 评论(0) 推荐(0) 编辑
摘要: 使用Hutool的工具类NumberUtil String custRatio = NumberUtil.decimalFormat("#.##%", saleRatio); 参考文档:https://www.bookstack.cn/read/hutool/1ac79ebaf52a0372.md 阅读全文
posted @ 2021-10-28 17:05 LHX2018 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: 解决方法: spring: main: allow-bean-definition-overriding: true 参考博客:https://www.cnblogs.com/lifelikeplay/p/14085256.html 阅读全文
posted @ 2021-10-28 17:01 LHX2018 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 创建了两个远程调用类,一个是调用退款的,一个是调用折扣的 但是两个调用类是调用的同一个微服务 都叫@FeignClient(value = "xxx-shop") 如何解决:同一个服务的接口,不要分散的写在多个接口类中,而是放到同一个接口类中定义调用 参看博客: https://blog 阅读全文
posted @ 2021-10-28 16:59 LHX2018 阅读(899) 评论(0) 推荐(0) 编辑
摘要: 0. 博客参考 https://blog.csdn.net/weixin_42740268/article/details/84871509 使用docker第一次安装rabbitmq所踩过的坑 https://www.cnblogs.com/geekdc/p/13604883.html 消费者消息 阅读全文
posted @ 2021-08-17 14:18 LHX2018 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 1.前言 我的话是微服务B调用微服务A的controller层 2.生产者 微服务A请求接口如下: @GetMapping("/listUniteProdPrice") public AjaxResult listUniteProdPrice(){ return AjaxResult.success 阅读全文
posted @ 2021-08-03 14:43 LHX2018 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 查看本人审批过的历史 public AjaxResult historyFromData(@RequestParam(value = "businessKey",required = false) String businessKey,@RequestParam("applyType") Strin 阅读全文
posted @ 2021-08-02 21:48 LHX2018 阅读(607) 评论(0) 推荐(0) 编辑