
程序报错
水果篮子~
这个作者很懒,什么都没留下…
展开
-
安装jq报错
问题描述:Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simpleCollecting jq Using cached https://pypi.tuna.tsinghua.edu.cn/packages/77/93/878b4c18b0e44b7191bac3d016937336daae273e7c1009bcdbb3418b4af2/jq-1.2.1.tar.gz (72 kB) Installing build depen原创 2022-01-21 20:01:29 · 3574 阅读 · 0 评论 -
Linux部署项目报错:java.sql.SQLException: null, message from server: “Host ‘XXXXX‘ is not allowed to connec
产生原因:MariaDB没有远程访问权限解决方法:需要给对应的MySQL账户分配权限,允许使用该账户远程连接到MySQL1.首先查看账户信息select User, host from mysql.user;2.root账户中的host项是localhost表示该账号只能进行本地登录,我们需要修改权限,输入命令:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPT原创 2022-01-14 15:22:35 · 1085 阅读 · 0 评论 -
TypeError: sum() received an invalid combination of arguments - got (axis=int, ), but expected one
错误描述:---------------------------------------------------------------------------TypeError Traceback (most recent call last)<ipython-input-62-d558297b41f8> in <module>----> 1 A_sum_axis0 = A.sum(axis=0)原创 2021-08-24 16:59:53 · 1902 阅读 · 0 评论 -
vscode报错:找不到驱动器。名为“.C”的驱动器不存在。
vscode报错:找不到驱动器。名为“.C”的驱动器不存在。解决方法:1.点击设置2.打开settings.json文件3.加入如下代码 "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe"4.保存重启。...原创 2021-05-10 17:09:14 · 3000 阅读 · 0 评论 -
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet
问题描述:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet successfully received from the server was 690 milliseconds ago. The last packet sent successfully to the server was 684 milliseconds ago. at s...原创 2021-09-28 15:24:01 · 1075 阅读 · 0 评论 -
文件上传报错:Cannot resolve method ‘getSubmittedFileName‘ in ‘Part‘
问题描述:在tomcat8使用servlet3.0上传文件,原来按以下步骤就可以完成1.Part part = request.getPart("XX");2.part.getSubmittedFileName()//直接获取文件名3.part.write(realPath)在tomcat7 的环境下就没有part.getSubmittedFileName()这一方法,无法直接获取文件名使用fiddle抓包工具,查看对应的图片的名称解决方案:String cd ..转载 2021-08-16 11:08:32 · 1179 阅读 · 0 评论 -
报错:Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: java.sec
在进行单元测试发现Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: java.sec解决方法:"jdbc:mysql://127.0.0.1:3306/java_16blogdemo?characterEncoding=utf-8&useSSL=true";将上面的useSSL改为false即可 。"C:\Program Files (x86)\Jav原创 2021-08-15 17:15:22 · 1930 阅读 · 0 评论