草庐IT

解决ssh连接提示Connection closed by xx port 22

最近使用VPN链接国外服务器的时候,突然出现ssh登录之后,進行複雜的操作后连接挂起,或者說ssh直接连接不上的情况,并且报错:xxxxxx$sshxxxxxxxx@xxx.xxx.xxx.xxx-vvvOpenSSH_7.6p1Ubuntu-4ubuntu0.5,OpenSSL1.0.2n7Dec2017debug1:Readingconfigurationdata/etc/ssh/ssh_configdebug1:/etc/ssh/ssh_configline19:Applyingoptionsfor*debug2:resolving"xxx.xxx.xxx.xxx"port22debug

mybatis中Error attempting to get column ‘xx‘ from result set 问题解决

场景描述在使用ssm框架写项目的时候,在构建mybatis中发现报错;报错内容(如下):Cause:org.apache.ibatis.executor.result.ResultMapException:Errorattemptingtogetcolumn'singerName'fromresultset.Cause:java.sql.SQLDataException:Cannotconvertstring'周杰伦'tojava.sql.Timevalue项目中的实体类:publicclassmusic{  privateIntegerMucId;privateStringMucName;p

Vue3报错:Failed to resolve component: xx If this is a native custom element, make sure to exclude it f

Vue3报错:Failedtoresolvecomponent:xxxIfthisisanativecustomelement,makesuretoexcludeitfromcomponentresolutionviacompilerOptions.isCustomElement.翻译:无法解析组件:xxx如果这是本机自定义元素,请确保通过compilerOptions.isCustomElement将其从组件解析中排除。网上找了很多博客,都没有解决问题,最后发现是setup没加上scriptsetup>参考:网上有很多出现此报错的原因是import没写对比如importxxfrom'路径'写

Vue3 报错:WebSocket connection to ‘ws://X.XXX.X.XX:8080/ws‘ failed:

问题:页面没有问题,但是打开控制台就出现如下图所示的一连串的报错信息问题解决: const{defineConfig}=require('@vue/cli-service')module.exports=defineConfig({transpileDependencies:true,lintOnSave:false,devServer:{host:'0.0.0.0',port:8080,client:{webSocketURL:'ws://0.0.0.0:8080/ws',},headers:{'Access-Control-Allow-Origin':'*',},}}) 修改完后重新运行一

JLink Error: Can not read register xx (xx) while CPU is running:解决办法

JLinkError:Cannotreadregisterxx(xx)whileCPUisrunning:解决办法问题描述使用Jlink调试代码时出现,JLinkError:Cannotreadregisterxxx:一般检查以下三个地方,A.检查JLINK的SW调试模式的频率太大了,修改为1MHzB.SW模式或JTAG模式切换一下C.FLASHDOWNLOAD选项卡,根据芯片的型号和FLASH的尺寸选择配置如图二

AES解密报错Invalid AES key length: xx bytes与Given final block not properly padded的解决方法

一、前言最近和其它系统联调接口,用到了Java的AES加解密。由其它系统AES加密,本人的系统获取到加密报文后,AES解密,获取到内容。本来是比较简单的,可是其它系统只提供了秘钥,没有提供解密方法,解密方法需要我们自己写……正常应该是加密方提供解密方法的吧,我觉得……结果,只能自己找解密方法,解密过程中就报了2个错:java.security.InvalidKeyException:InvalidAESkeylength:14bytesjavax.crypto.BadPaddingException:Givenfinalblocknotproperlypadded还好最后都解决了,在此记录下。

AES解密报错Invalid AES key length: xx bytes与Given final block not properly padded的解决方法

一、前言最近和其它系统联调接口,用到了Java的AES加解密。由其它系统AES加密,本人的系统获取到加密报文后,AES解密,获取到内容。本来是比较简单的,可是其它系统只提供了秘钥,没有提供解密方法,解密方法需要我们自己写……正常应该是加密方提供解密方法的吧,我觉得……结果,只能自己找解密方法,解密过程中就报了2个错:java.security.InvalidKeyException:InvalidAESkeylength:14bytesjavax.crypto.BadPaddingException:Givenfinalblocknotproperlypadded还好最后都解决了,在此记录下。

To use xx的iPhone for development, enable Developer mode in Settings->Privacy & Security

最近iPhone和Mac自动更新,真机运行遇到以上问题,解决方法也是很简单,如下:打开手机“隐私与安全性”当中开发者调试开关,重启手机与Xcode的,问题就解决了,希望能给小伙伴们帮助哈 

vue3 vite Uncaught (in promise) ReferenceError: Cannot access ‘xx‘ before initialization

Uncaught(inpromise)ReferenceError:Cannotaccess'BasicForm'beforeinitialization这是组件之间出现循环引用时导致,我们可以通过异步组件:defineAsyncComponent解决,在VUE3的官网:https://cn.vuejs.org/guide/components/async.html#basic-usage。直接引用官网提供的异步组件(defineAsyncComponent),写法多种。以下只是其中一种。如原来的写法:修改后的写法:

ssh 连接报错:Unable to negotiate with 192.168.xx.xx port 22: no matching key exchange method found.

用ssh连接Linux服务器时,很偶然的情况下出现了如下报错:Unabletonegotiatewithxx.xx.xx.xxport22:nomatchingkeyexchangemethodfound.Theiroffer:diffie-hellman-group1-sha1大概的原因是ssh客户端不支持ssh-rsa算法,如果要解决报错需要手动修改本地配置,指定具体的ssh-rsa算法。解决方案新建~/.ssh/config文件:touch~/.ssh/configvi~/.ssh/config手动添加如下内容:Host192.168.xx.xxKexAlgorithms+diffie-