今天也是愉快的一天

67 阅读1分钟
A:使用nvm进行node版本管理,使用yarn命令无效
B:
1.把nvm安装路径下node_global的yarn文件放到npm.cmd同级的文件夹下
2.把nvm的node_global\node_modules下的yarn的包放到nvm的node_modules里面,与npm包同级

参考链接:https://www.cnblogs.com/zzwlong/p/17197236.html
A:node升级到18出现的问题 Error: error:0308010C:digital envelope routines::unsupported如何解决
B: 原因分析 [终极解决:Error: error:0308010C:digital envelope routines::unsupported-CSDN博客](https://blog.csdn.net/m0_48300767/article/details/131450325)
解决方式
package.json需改脚本
"scripts": {
  "start": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
  "build": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build",
  "test": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts test",
  "eject": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts eject"
}
A:git错误提交了代码如何反提交
B:
情景1
代码commit 没有push到仓库
idea中点击操作 undo commit
情景2
代码commit push到仓库
revert commit 本地撤回
push 同步远程仓库
cherry-pick
undo commit 本地代码还原,显示没有提交
(备注:本操作在idea中进行)
A:git的常用命令你知道哪些
B:
参考链接
https://blog.csdn.net/hsy12342611/article/details/130409941
https://www.cnblogs.com/lxd670/p/17550490.html
A:mqtt如何使用
B:仓库地址:https://github.com/emqx/MQTT-Client-Examples.git
[springboot/springboot-mqtt · collin/cs-spring - 码云 - 开源中国 (gitee.com)](https://gitee.com/g2plus/cs-spring/tree/cpc-lib/springboot/springboot-mqtt)
mqtt文档介绍
[MQTT 协议入门:基础知识和快速教程 | EMQ (emqx.com)](https://www.emqx.com/zh/blog/the-easiest-guide-to-getting-started-with-mqtt)
A:java中新版时间与MySQL数据库对应时间的关系
B:· 
java.time.LocalDate -> DATE
java.time.LocalTime -> TIME 
java.time.LocalDateTime -> DATETIME/TIMESTAMP 
自动处理无需自定义TypeHandler
LocalDate->DATE
LocalTime->TIME
LocalDateTime->DATETIME/TIMESTAMP
可能需要升级mysql-connector-java的版本
视频链接:https://b23.tv/3uCddcw
A:dockerhub下架docker pull失败的问题的解决方案
B:参考视频https://b23.tv/HtiG9bt
仓库地址
https://github.com/tech-shrimp/docker_installer
阿里云仓库地址
https://cr.console.aliyun.com/
A:在springboot中如何集成grpc进行远程调用
B:[springboot/springboot-grpc · collin/cs-spring - 码云 - 开源中国 (gitee.com)](https://gitee.com/snow-io/cs-spring/tree/cpc-lib/springboot/springboot-grpc)