自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 ConnectTimeoutException: connection timed out: /192.168.188.128:6379解决办法

Caused by: io.netty.channel.ConnectTimeoutException: connection timed out: /192.168.188.128:6379测试Redis失败,异常报错如下:org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnecti

2021-01-07 18:32:04 17574

原创 执行 $(“#projectForm“).submit()后出现404的情况.

第一反应就是id选择器或者路径没有对应上,观察代码发现:id选择器正确:第二种可能就是form表单提交的路径跟handler里面的路径对不上:发现路径也对上了…第三种可能就是传参时数据格式对不上,仔细思考,观察参数发现:方法传参并没有使用@RequestParam注解,那么就是这个问题.解决方法:让前端传过来的参数与之对应.先让前端传过来的参数经过Zuul,这一步的主要作用是保存不同微服务调用时Session一致,进而实现参数传递,Zuul的配置文件如下:那么方法的路径就需要去掉/pr

2020-12-28 21:56:39 563

原创 Error: A JNI error has occurred, please check your installation and try again解决方案[一半]

异常提示:java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048)

2020-12-25 22:14:15 883

原创 SpringCloud服务出现:com.netflix.client.ClientException: Load balancer does not have available

异常描述:com.netflix.client.ClientException: Load balancer does not have available server for client: atguigu-crowd-mysql at com.netflix.loadbalancer.LoadBalancerContext.getServerFromLoadBalancer(LoadBalancerContext.java:483) ~[ribbon-loadbalancer-2.3.0.jar:

2020-12-21 22:36:57 1473

原创 Springboot+thymeleaf+redis报org.thymeleaf.exceptions.TemplateInputException异常

异常描述:org.thymeleaf.exceptions.TemplateInputException: Error resolving template [auth/member/send/short/message], template might not exist or might not be accessible by any of the configured Template Resolvers at org.thymeleaf.engine.TemplateManager.resol

2020-12-21 13:53:54 143

原创 SpringBoot的test测试类报com.netflix.discovery.shared.transport.TransportException异常

SpringBoot的test测试类报com.netflix.discovery.shared.transport.TransportException:Cannot execute request on any known server异常测试类的相应注解:yml文件:主启动类:问题:主启动类能够启动且没有问题,但一旦进行test测试,就会出现com.netflix.discovery.shared.transport.TransportException: Cannot execute

2020-12-19 13:32:18 414 1

原创 springboot出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):

springboot出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):这个问题的原因很有可能是哪个符号或者字母出现问题导致没有正确匹配上.因此从前到后依次检查了对应的名称是否相等.第一:检查Mapper.xml文件的配置路径是否与包名对应xml文件配置路径包名对应,排除此问题.第二:检查application.yml中的配置是否与xml文件位置对应application.yml中

2020-12-17 22:37:35 436

原创 SpringCloud启动Provider微服务时出现java.io.FileNotFoundException异常

SpringCloud启动Provider微服务时出现java.io.FileNotFoundException异常异常描述:在这里org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.atguigu.spring.cloud.Provider]; nested exception is java.io.FileNotFoundException:

2020-12-16 11:30:23 2622 2

原创 启动Eureka配置好的客户端报错:com.netflix.discovery.shared.transport.TransportException: Cannot execute request

启动Eureka配置好的客户端报错:com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server解决:异常如下:application.yml的配置如下:没有问题观察异常发现是Eureka配置的服务器端没有启动,启动Eureka的服务器端:再启动客户端:启动成功,问题解决!...

2020-12-14 18:58:12 1109

原创 修改redis配置文件redis.conf过程中如何找到redis.conf以及如何修改对应的命令:

标题修改redis配置文件遇到的一些问题:问题1:如何找到redis.conf配置文件答:通过命令 find / -name redis.conf找到目标文件通过cd慢慢移动到问题2:如何修改redis.conf配置文件答:vim redis.conf进入编辑模式,将bind 127.0.0.1注释掉,改为bind 192.168.188.128;将protected-mode从yes修改为no然后按esc退出编辑,按:wq保存并退出结果发现配置文件并没有生效,后来又通过一位老哥的操作才修

2020-12-09 20:40:14 3080

原创 启动tomcat访问网页时报错: NoSuchBeanDefinitionException:springSecurityFilterChain

启动tomcat访问网页时报错:NoSuchBeanDefinitionException:springSecurityFilterChainweb.xml中代码如下:一般,引起这种情况的原因无非是加载时读不到springSecurityFilterChain代码显然没有问题,因此把这部分注释掉之后再试了一下,发现能够启动并访问页面.因此想着会不会是因为jar包在程序编写的过程中出现了问题,而后对该项目的pom.xml进行了clean和install,问题得到解决!找到了困扰两天的BUG,很开

2020-10-20 20:55:26 490 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除