![](https://img-blog.csdnimg.cn/20200530220330458.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
报错汇总
该模块内容主要是在开发和学习过程中出现的各种报错以及对应的解决方案
大头_404
这个作者很懒,什么都没留下…
展开
-
(已解决)Public Key Retrieval is not allowed
在运行程序时,报出一溜错,其中最后一条是:Public Key Retrieval is not allowed解决办法:在连接url上加 allowPublicKeyRetrieval=true之后那一溜错也不复存在了。原创 2021-10-21 08:53:47 · 205 阅读 · 0 评论 -
解决Vue处理超过16位数字精度丢失问题
处理这种问题有两种方案,要么后端出处理,要么前端处理后端处理:直接把id类型改为String就行,这样是可以,但是我们如果非要用Long呢?我们可以给对应的实体类主键属性加入注解@JsonSerializeimport com.fasterxml.jackson.databind.annotation.JsonSerialize;import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; @JsonSerialize..原创 2021-09-23 16:53:33 · 2302 阅读 · 0 评论 -
链接Redis时出现 “ERR Client sent AUTH, but no password is set” 异常的原因及解决办法
Java链接Redis时出现 “ERR Client sent AUTH, but no password is set” 异常的原因及解决办法大致意思就是 Redis未设置密码 按照网上说的 给配置文件redis.windows.conf添加 requirepass值得后依旧无效【问题原因】Redis服务器没有设置密码,但客户端向其发送了AUTH(authentication,身份验证)请求。【解决办法】确定Redis启动时指定是哪个配置文件。重启 之后 解决!...原创 2021-05-24 16:51:11 · 739 阅读 · 0 评论 -
[ERROR] ‘modules.module[3]‘ specifies duplicate child module health_service_provider @ line 14, colu
问题出在父工程 pom.xml重复原创 2021-03-04 10:01:17 · 272 阅读 · 1 评论 -
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective acces
报错信息WARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by org.apache.ibatis.reflection.Reflector (file:/D:/ConfigFile/Repository/org/mybatis/mybatis/3.4.6/mybatis-3.4.6.jar) to method java.lang.Class.checkPacka原创 2020-07-10 20:09:06 · 11103 阅读 · 3 评论 -
RedisTemplate操作redis时,key值出现\xac\xed\x00\x05t\x00前缀
经查阅资料,是RedisTemplate默认序列化方式用的是JdkSerializationRedisSerializer,此时我将key序列化方式改成StringRedisSerializer,将value序列化方式改为Jackson2JsonRedisSerializer代码如下://序列化为String 防止key值出现\xac\xed\x00\x05t\x00前缀 RedisSerializer stringSerializer = new StringRedisSerial原创 2020-07-10 09:46:06 · 520 阅读 · 0 评论 -
dao接口继承Mapper时的泛型会报红
问题描述在SpringBoot快速构建中,明明有实体类,为什么继承Mapper会报错?而且我的通用Mapper依赖已经导入。解决方案原因:导错包了,要导tk包,而不是org包!!!!解决方法:↓错误示例正确包...原创 2020-07-06 18:27:00 · 608 阅读 · 0 评论 -
Action:Consider defining a bean of type“org.springframework.web.client.RestTemplate”in your conf
报错代码:很低级的错误,代码是copy过来的,但是启动类是我自己手动创建的,导致没有观察到需要创建一个beanDescription:Field restTemplate in com.changgou.oauth.service.impl.AuthServiceImpl required a bean of type 'org.springframework.web.client.RestTemplate' that could not be found.The injection point原创 2020-06-26 15:30:18 · 1340 阅读 · 0 评论 -
RabbitMQ出现com.rabbitmq.client.ShutdownSignalException: channel error protocol method:问题
RabbitMQ做完前面的几种模式后,做到路由模式出现以下报错:Exception in thread "main" java.io.IOException at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:126) at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:122) at com.rabbitmq.client.impl.AMQChannel.exnW原创 2020-06-14 21:18:03 · 10170 阅读 · 2 评论 -
解决:com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused:
如果是单机版的话检查配置文件此报错是在 eureka 工程启动时 ,则在 eureka 的配置文件 application.properties 中加上以下两行配置 :# 此应用为注册中心,false:不向注册中心注册自己。eureka.client.register-with-eureka=false# 注册中心职责是维护服务实例,false:不检索服务。eureka.client.fetch-registry=false如果是多台,检查eureka是否启动,以及配置文件是否有误...原创 2020-06-09 21:21:59 · 191 阅读 · 0 评论 -
【spring boot】启动类启动 错误: 找不到或无法加载主类 xxx.xxxx.xxx.xxApplication 的解决方案
install一下,如果有报错的话,处理完就可以了原创 2020-06-08 20:23:11 · 1660 阅读 · 1 评论 -
项目启动报com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure错误
报错信息com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at com.mysql.cj.jdbc.exceptions.SQLErr原创 2020-05-31 14:12:37 · 2403 阅读 · 0 评论 -
eureka注册出现TransportException异常Cannot execute request on any known server
报错源码:com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server at com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:112) ~[eureka-client-1.9.8.jar原创 2020-05-31 00:18:09 · 1492 阅读 · 0 评论 -
电脑右键菜单失效以及该文件没有与之关联的应用来执行该操作,请安装应用.....
今天在搞桌面的时候,想着把碍眼的小箭头删除掉结果百度执行一个命令,确实成功了,但是任务栏的程序无法快捷启动,百度找了一下终于解决了方法e799bee5baa6e997aee7ad94e59b9ee7ad9431333431363635一:win+R,输入regedit,分别在HKEY_CLASSES_ROOT\piffileHKEY_CLASSES_ROOT\InternetShortcutHKEY_CLASSES_ROOT\lnkfile中新建→字符串值,命名为IsShortcut方法二原创 2020-05-24 17:24:17 · 1004 阅读 · 0 评论 -
node.js 安装webpack 报错 Error: Cannot find module “webpack-cli”--解决方案
现象`+ webpack-cli@3.3.11added 204 packages from 129 contributors in 6.525s{ Error: Cannot find module 'webpack-cli' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) at Function.Module._load (internal/modules/cjs/loader原创 2020-05-24 11:58:24 · 357 阅读 · 0 评论 -
elasticSearch启动报错plugins\elasticsearch\ik\config\IKAnalyzer.cfg.xml“read”
elasticSearch加入ik分词器插件后,重新启动elasticSearch发现索引状态显示关闭,并且对索引库进行任何操作都会报异常elasticSearch启动是报错如下java.security.AccessControlException: access denied ("java.io.FilePermission" "E:\Develop\elasticsearch-5.6.8\elasticsearch-cluster\elasticsearch-5.6.8%20-%203\plugi原创 2020-05-22 12:32:00 · 1173 阅读 · 1 评论 -
ElasticSearch.bat 启动时出现闪退 解决方法和原因都给你解决
问题描述使用Easticsearc时侯启动时,点击elasticsearch.bat发生闪退原因以及解决方案:我在修改 config下的elasticsearch.yml文件是 标点和空格有误 用的是中文标点,导致异常闪退 修改后无误其他原因在出现闪退问题后,我第一时间选择的是百度(因为ElasticSearch是新知识点),百度后发现网上有说是“配置文件没有使用UTF-8编码”,有说“配置项和值之间空格使用错误”。但是综合来看,基本上都是因为配置文件配置错误问题,因此自己多多查看一下自己的配置原创 2020-05-20 15:38:27 · 3484 阅读 · 3 评论 -
IDEA中pom导入依赖没有提示解决方案
问题描述Idea maven模块中pom.xml文件导包的时候不会自动提示解决方案:打开Settings界面,依次找到“Build,Execution,Deployment——>Bulid Tools——>Maven——>Repositories”。点击如图update按钮,更新Maven仓库索引PS:该解决方案只适用于已经下载到本地库的情况,本地库没有下载的情况下一般都是没有提示...原创 2020-05-17 15:54:18 · 6490 阅读 · 2 评论 -
springboot报错 Failed to load property source from location ‘classpath:/application.yml’ 看完就懂了
解决方案: Failed to load property source from location ‘classpath:/application.yml’原因不允许用 Tab 缩进。解决方案用空格代替,如下图所示。YAML基本语法k:(空格)v:表示一对键值对(空格必须有);以空格的缩进来控制层级关系;只要是左对齐的一列数据,都是同一个层级的;属性和值也是大小写敏感;...原创 2020-05-14 16:31:18 · 268 阅读 · 0 评论