草庐IT

引入echars5.0报错“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘解决方案

引入echars5.0报错“export‘default‘(importedas‘echarts‘)wasnotfoundin‘echarts‘解决方案前言:老版本的echars样式与新版本的组件美观度相差巨大,以美观为主所以把组件升级成了echars5.0,结果报错了【"export‘default’(importedas‘echarts’)wasnotfoundin‘echarts’】!一、npmrundev报错直接报错:"export‘default’(importedas‘echarts’)wasnotfoundin'echarts’二、报错原因与解决方案新版本的echarts引入方式

ssh 解决git@gitlab.xxx.com‘s password

sshpull操作总是提示:git@gitlab.xxx.com’spassword:Administrator@DE~$ssh-add~/.ssh/XXXCouldnotopenaconnectiontoyourauthenticationagent.Administrator@DE~$ssh-agentbashAdministrator@DE~$ssh-add~/.ssh/XXXIdentityadded:/home/Administrator/.ssh/XXX(XXX)XXX为你自己的私钥文件名使用以上命令,只能对当前环境生效,重启或新开终端会继续提示输入密码

报Invalid value type for attribute ‘factoryBeanObjectType‘: java.lang.String错误

1.没有使用MybatisPlus的时候可能是你项目中缺少这个依赖,或者版本过低。导入以下maven坐标org.mybatismybatis-spring3.0.32.有使用MybatisPlus的时候mybatis-plus中集成的mybatis版本太旧,产生了冲突。导入以下maven坐标                 com.baomidou         mybatis-plus-boot-starter         3.5.4.1                     org.mybatis         mybatis-spring         3.0.3      

解决pyQT5运行出现“name ‘Ui_MainWindow‘ is not defined”问题

按理说,在自行编辑好界面保存生成一个ui文件后,再转成py文件但是直接运行py文件出现不能出现界面需要输入一下代码:fromPyQt5.QtWidgetsimportQMainWindow,QApplicationimportsysif__name__=='__main__':  app=QApplication(sys.argv)  window=QMainWindow()  ui=Ui_MainWindow()  ui.setupUi(window)  window.show()  sys.exit(app.exec_()) 但是ui=Ui_MainWindow()标红找半天问题才发现,那

关于VS code ESP-IDF 提示“loading ‘build.ninja‘: 系统找不到指定的文件” 的解决方案

最近在搞一个开源项目玩,需要用IDF编译工程,奈何之前没用过IDF,只好自己装一下,又不想放弃VScode的便捷;后面发现VScode可以支持IDF平台,就在VScode中安装了;如何安装不再本文赘述,网上很多博客可以参考;本文仅阐述如何将工程编译并下载到设备;将工程在VscodeIDF中打开后编译,直接报错,找不到文件;出现这个问题,编译器已经有编译动作,但无法继续编译,之前在VScode上安装了IDF的伙伴,大家应该都有新建过一个IDF的实例工程来验证IDF是否安装成功,比如HelloWorld工程。新建后打开大概长这样这个工程是IDF自动建立的,一般都是可以编译的, 编译完成会有下图这样

Windows11 WSL中Llinux报错:System has not been booted with systemd as init system (PID 1). Can‘t operate

1.序在Windows11中安装Ubuntu,运行docker报错,安装步骤如下Windows11微软商店安装ubuntu子系统LinuxUbuntu安装Docker在Windows中使用WSL的Ubuntu时,使用systemctl命令报错:hh@LAPTOP-O6A604DC:~$systemctlstartdockerSystemhasnotbeenbootedwithsystemdasinitsystem(PID1).Can'toperate.Failedtoconnecttobus:Hostisdown2.问题分析可能是因为这个Ubuntu系统并没有使用systemd,可能使用的是S

【服务器】SSH 私钥报错 Permissions for ‘id_rsa‘ are too open. It is required that your private key

报错信息Permissionsfor'id_rsa'aretooopen.ItisrequiredthatyourprivatekeyfilesareNOTaccessiblebyothers.Thisprivatekeywillbeignored.Loadkey"id_rsa":badpermissionsxxx@xxx:Permissiondenied(publickey).问题描述(发现XShell自带的公私钥生成工具,生成的公私钥对不好使)使用ssh-keygen生成公私钥对之后,直接在cmd命令行中进行连接:ssh-keygen得到将公钥添加到服务器的authorized_keys之

Mac 终端-z‘sh提示 Permission denied 权限问题(VSCode提示没有权限,无法保存文件问题)

一.给文件加权限一个文件有3种权限,读、写、可执行,Permissiondenied就是没有可执行权限,所以需要加上可执行权限。1.进入终端先cd到该文件的目录下2.执行命令chmoda+x./文件名二:赋予文件夹权限$sudochmod-R777 目录路径其中-R是指级联应用到目录里的所有子目录和文件777是所有用户都拥有最高权限770是自己有权限

Data truncation: Out of range value for column ‘id‘ at row 1

一、问题插入数据保存到mysql中时,log:Preparing:INSERTINTOuser(id,name,age,email,create_time,update_time,version)VALUES(?,?,?,?,?,?,?)==>Parameters:1628736816360296450(Long),岳不群1(String),70(Integer),lucy@qq.com(String),2023-02-2320:41:32.144(Timestamp),2023-02-2320:41:32.144(Timestamp),1(Integer)错误提示:Datatruncatio

解决:Vscode中的git突然不显示,报错:gitLens can‘t find the git pah, xcrun: error: active developer path doesn‘t x

问题:Mac上的Vscode底部状态栏的git突然不显示了,vscode报错: gitLenscan'tfindthegitpah。或通过命令行执行git命令提示: xcrun:error:activedeveloperpath("/Users/xx/Downloads/Xcode.app/Contents/Developer")doesnotexist.--实际:电脑已经安装了git,并且在vscode的settings.json中已经配置好了git.path。mac上查看git的安装目录路径命令:whichgit解决:打开Xcode软件-》顶部菜单“Xcode”-〉“preference”