Q&A
遇到的问题及解决方法
rivercoder
技术改变生活
展开
-
java.sql.SQLException:Unknown system variable ‘tx_isolation‘问题解决
MySQL 服务器使用的是8.x版本,但是客户端的连接 mysql-connector-java 却是 5.1.10。保持版本一致,升级 mysql-connector-java版本为 8.X。原创 2023-10-19 21:23:09 · 808 阅读 · 0 评论 -
java.sql.SQLFeatureNotSupportedException解决方法
可以看出,create_time映射到LocalDateTime时抛出异常,时间类型映射不支持LocalDateTime,原创 2023-10-15 15:33:30 · 3084 阅读 · 2 评论 -
Hexo博客jsdelivr资源访问超时导致博客打不开
最近访问自己博客的时候,发现首页访问很慢,甚至打不开,有些浏览器可以,打开控制台,发现访问的前端资源很多都是超时的。原创 2022-06-07 23:22:15 · 575 阅读 · 0 评论 -
openfeign调用异常:feign.FeignException: [405] during [GET]
欢迎光临我的博客查看最新文章: https://river106.cnfeign调用异常如下:feign.FeignExceptionKaTeX parse error: Expected 'EOF', got '#' at position 86: …o] [OrderClient#̲orderInfo(Integ…Default.decode(ErrorDecoder.java:92)看异常信息,应该是请求方式不对, 修改请求方式为POST;如果请求方式也正确,检查下feign请求参数,.原创 2022-05-31 08:53:47 · 3884 阅读 · 0 评论 -
Lombok类上加@Builder注解报错:实际参数列表和形式参数列表长度不同
在IDEA中使用Lombok插件后,可以极大方便我们的开发。在类上加@Builder注解后,类就可以使用建造者模式,比如:@Builder@Datapublic class ResultDTO { private String code; private String message; private Object result; public static void main(String[] args) { System.out.print原创 2022-03-30 00:00:00 · 2802 阅读 · 0 评论 -
jdk1.8.0_151 java.security.InvalidKeyException: Illegal key size
欢迎光临我的博客查看最新文章:https://river106.cn调用第三方接口,对数据进行AES加密时,报错如下:java.security.InvalidKeyException: Illegal key size1、为什么会出现这个报错?JDK中包含有JRE(Java Runtime Environment,即:Java运行环境),JRE中包括Java虚拟机(Java Virtual Machine)、Java核心类库和支持文件,而我们今天要说的主角就在Java的核心类库...原创 2022-03-19 10:52:44 · 2113 阅读 · 0 评论 -
git push报错:Incorrect username or password (access token)
由于是gitee私有仓库,在使用git push提交代码时报错:Incorrect username or password (access token)以下是windows 10系统解决方案:进入 控制面板 -》用户账户 -》凭据管理器 -》 Windows凭据原创 2021-08-14 07:47:48 · 545 阅读 · 0 评论 -
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated 问题解决
最近线下调试银联支付时报错:javax.net.ssl.SSLPeerUnverifiedException: peer not authenticatedat sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:431)at org.apache.http.conn.ssl.AbstractVe...原创 2018-09-12 20:01:57 · 4013 阅读 · 0 评论 -
SpringBoot使用FastJson后,接口返回中文乱码的问题解决
springboot 中,使用fastjson替换jackson ,接口返回出现乱码,解决方法如下:@Bean public HttpMessageConverters fastJsonHttpMessageConverter() { FastJsonHttpMessageConverter fastConverter = new FastJsonHttpMessageConve...原创 2018-09-16 16:21:30 · 331 阅读 · 0 评论 -
linux下mysql的root密码忘记的解决方法
1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库。因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的状态下,其他的用户也可以任意地登录和修改MySQL的信息。可以采用将MySQL对外的端口封闭,并且停止Apache以及所有的用户进程的方法实现服务器的准安全状态。最安全的状态是到服务器的Console上面操作,并且拔...原创 2018-09-17 09:05:24 · 108 阅读 · 0 评论 -
解决java发送邮件无主题且邮件内容乱码问题
BUG描述:本地测试,正常发送邮件。部署到linux服务器后,发送邮件无主题,无收件人,正文中是乱码(准确说是QP编码)。本以为 是服务器编码问题,各种设置编码,都不行,最终找到了原因,jar包冲突.大家可以看看这篇文章:http://jeyke.iteye.com/blog/1441548 。我的项目是使用maven引入包的,pom.xml中的配置如下:<de...原创 2018-09-17 09:05:40 · 2763 阅读 · 0 评论 -
Eclipse编辑java文件报Unhandled event loop exception错误的解决办法
搜集网上的答案: 删除workspace 工作区 重新新建工作区 网上报百度杀毒引起 处理办法 关闭百度杀毒 或加ADT目录 和工作区加入白名单 更新eclipse swt插件 开发时关闭AdSafe软件 因为我的处理好之后再开Adsafe 软件 ,一直提示错误不断 关闭所有杀毒软件全部关了 部分原因是因为AMD显卡问题 查找进程 关闭...原创 2018-09-18 08:53:30 · 307 阅读 · 0 评论 -
git:No remote repository specified 解决方法
gitpull代码时候出现,或者push代码无效fatal: No remote repository specified. Please, specify either a URL or aremote name from which new revisions should be fetched.解决找到本地仓库项目里面的 .git文件夹,找到config打开,修改里...原创 2018-09-18 08:53:37 · 5469 阅读 · 0 评论 -
MySQL导入SQL文件过大或连接超时的解决办法
连接超时,导入的sql文件过大解决办法:set global max_allowed_packet=100000000;set global net_buffer_length=100000;SET GLOBAL interactive_timeout=28800000;SET GLOBAL wait_timeout=28800000;以上语句的解释:–max_allo...原创 2018-09-19 08:55:45 · 491 阅读 · 0 评论 -
docker0: iptables: No chain/target/match by that name
在CentOS 6.8下使用类似nginx之类的web server,启动docker时有时会报以下错误:docker0: iptables: No chain/target/match by that name.解决方法:service docker restart 重启docker后:iptables -L可以看到iptables里面多出了Chain Docker的选...原创 2018-09-23 08:33:39 · 1608 阅读 · 0 评论 -
安装Chrome插件时出现的“程序包无效”解决方法
打开谷歌扩展程序,将插件xxx.crx 拖至扩展程序时报错如下:解决方法:1、找到插件xxx.crx,把crx后缀名改为rar,解压缩得到文件夹xxx, 如下图sense:2、打开该文件夹sense,把里面的"_metadata"文件夹改名为"metadata"(去掉下划线_):3、进入扩展程序中心,启用开发者模式,加载正在开发的程序包,选择刚才的文件夹sense...原创 2019-08-17 15:10:02 · 4862 阅读 · 0 评论 -
git pull error: The following untracked working tree files would be overwritten by merge
执行git pull命令时报错:error: The following untracked working tree files would be overwritten by merge解决方法:使用如下git命令:git clean -d -fxgit clean -d -fx表示:删除 一些 没有 git add 的 文件;git clean 参数如下:...原创 2020-01-04 21:24:49 · 1582 阅读 · 0 评论 -
Springboot请求日期类型参数报错:org.springframework.validation.BeanPropertyBindingResult: 1 errors
Springboot 或SpringMVC Controller层请求参数包含Date类型,传入参数为“yyyy-MM-dd HH:mm:ss”格式的日期,报错如下:org.springframework.validation.BeanPropertyBindingResult: 1 errors解决方法:在Springboot 或SpringMVC Controller层添加如...原创 2020-02-14 09:40:14 · 2188 阅读 · 0 评论 -
springboot 2.x: java.lang.ClassNotFoundException: org.springframework.boot.bind.RelaxedDataBinder
springboot 2.x 集成druid,引入的依赖为:<dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <ve...原创 2020-03-15 19:20:43 · 1752 阅读 · 2 评论 -
springboot 上传文件:the request was rejected because its size (11601865) exceeds the configured maximum
springboot上传文件时报错:org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (11601865) exceeds the configured maximum (10485760) a...原创 2020-03-15 20:00:24 · 2831 阅读 · 3 评论 -
Python读取文件内容时报错:UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte...
Python代码如下:#!/usr/bin/python3print("读取的文件内容:")with open("myfile.txt", mode='r') as f: for line in f: print(line, end="")运行代码,异常信息如下:Traceback (most recent call last): File "E...原创 2020-05-05 20:14:21 · 526 阅读 · 0 评论 -
PyCharm安装第三方库超时的解决办法
学习python3的过程中,会使用到第三方库,一般安装有2种方法:1.使用pip命令安装$ pip install pillow使用该命令时修改超时时间:$ pip install --default-timeout=1000 pillow2、通过PyCharm 的SettingsFile->Setting->Project Interpreter, 点击+,输入网址:https://pypi.douban.com/simplehttps://pypi..原创 2020-05-10 17:32:58 · 7027 阅读 · 0 评论 -
idea导入的maven项目不能自动识别
idea导入的maven项目不能自动识别,导致后续很多操作无法进行。解决方法:1、如果idea窗口右侧有maven按钮,可进行如下操作:2、如果没有右侧maven按钮选中项目中的pom.xml,右键,选择" Add as Maven Project", 即可刷新为maven项目...原创 2020-07-12 18:17:01 · 2986 阅读 · 0 评论 -
npm安装cnpm时报错:npm ERR! code ERR_TLS_CERT_ALTNAME_INVALID
使用 npm install cnpm -g 安装淘宝镜像加速器cnpm 时报错:npm ERR! code ERR_TLS_CERT_ALTNAME_INVALIDnpm ERR! errno ERR_TLS_CERT_ALTNAME_INVALIDnpm ERR! request to https://registry.cnpmjs.org/cnpm failed, reason: Hostname/IP does not match certificate's altnames: Host:原创 2020-10-08 20:58:07 · 1507 阅读 · 3 评论 -
There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp/index.jsp问题解决
SpringBoot集成JSP时遇到如下问题:There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp/index.jsp。项目结构如下:解决方法:1、首先确认下maven中是否有如下依赖: <dependency> <groupId>org.apache.tomcat.embed</groupId>原创 2021-01-17 19:31:44 · 17207 阅读 · 5 评论