摘要: 1.定义全局变量、引用 postman.setGlobalVariable("startTime",Date.parse(new Date("2022/11/18 11:24:10"))); postman.setGlobalVariable("endTime",Date.parse(new Dat 阅读全文
posted @ 2022-11-02 13:29 繁华纤尽依然保持初心 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 1.1.语音文件路径转化为BASE64格式的String 源码 (jdk版本-1.8) public static String encodeBase64File(String path) throws Exception { File file = new File(path);; FileInp 阅读全文
posted @ 2022-11-01 16:57 繁华纤尽依然保持初心 阅读(2025) 评论(0) 推荐(0) 编辑
摘要: 1.getway+SpringCloud版本 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.6.4</versio 阅读全文
posted @ 2022-07-26 10:54 繁华纤尽依然保持初心 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 1.实现代码 package com.cn.lze.utils; import com.auth0.jwt.JWT; import com.auth0.jwt.JWTVerifier; import com.auth0.jwt.algorithms.Algorithm; import com.aut 阅读全文
posted @ 2022-06-23 18:04 繁华纤尽依然保持初心 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 1实现代码 //工具类 package com.cn.lze.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import 阅读全文
posted @ 2022-06-23 18:01 繁华纤尽依然保持初心 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1.线上加密-解密网址 https://www.bejson.com/enc/rsa/ 2.JAVA后端代码 package com.cn.lze.utils; import org.apache.commons.codec.binary.Base64; import org.slf4j.Logge 阅读全文
posted @ 2022-06-23 17:55 繁华纤尽依然保持初心 阅读(426) 评论(0) 推荐(0) 编辑
摘要: linux查看hostname以及修改hostname 查看hostname : hostname 修改hostname : hostnamectl set-hostname master (比如要修改为master) 修改完重启生效 :reboot 阅读全文
posted @ 2021-08-23 17:40 繁华纤尽依然保持初心 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 一.easycode的模板码是 c32a0258fce7c3c1348547643a45c3f0 阅读全文
posted @ 2020-12-23 15:35 繁华纤尽依然保持初心 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1.首先查看Linux系统版本 centos6使用命令:lsb_release -a, centos7使用命令:cat/etc/os-release, Ubuntu使用命令:lsb_release -a 2.官网下载包 1.下载地址: https://dev.mysql.com/downloads/ 阅读全文
posted @ 2020-12-01 09:48 繁华纤尽依然保持初心 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1.系统中的雪崩效应 微服务之间往往采用RPC或者HTTP调用,一般都会设置调用超时的限制,或者通过失败重试机制来确保服务成功执行。但如果不考虑服务的熔断和限流,还是很容易产生服务雪崩的。 我们系统中三个服务:订单服务,商品服务,库存服务; 下单场景:用户下单了一个商品,客户端调用订单服务来生成预付 阅读全文
posted @ 2020-11-03 13:52 繁华纤尽依然保持初心 阅读(615) 评论(0) 推荐(0) 编辑