![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误总结
meihuiziaaaaaa
这个作者很懒,什么都没留下…
展开
-
org.springframework.mail.javamail.JavaMailSender' that could not be found
手动发送邮件SpringBoot项目启动失败,原因还需要配置如下sprinng:mail:default-encoding: UTF-8host: mail.hd.bitauto.compassword: qwer.123properties:mail:smtp:auth: truestarttls:enable: falserequired: false...原创 2019-10-31 14:39:48 · 7612 阅读 · 0 评论 -
com.alibaba.fastjson.JSONException: syntax error, expect {, actual string, pos 0, fastjson-version 1
MQ接受消息的时候,.net传过来的消息是byte[] 重新变成String类型后得到的字符串如下,结果在解析的时候报错,原因多了 ‘\’ ,JSON.parse()就ok了原创 2019-07-18 14:36:06 · 5308 阅读 · 1 评论 -
Linux大部分命令失效
修改了/etc/profile文件后命令失效执行命令 export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin后就可以暂时恢复,在修改/etc/profile中的错误,便可以恢复,原创 2019-01-09 17:30:51 · 858 阅读 · 0 评论 -
java.io.IOException: Failed to replace a bad datanode on the existing pipeline due to no more good d
java.io.IOException: Failed to replace a bad datanode on the existing pipeline due to no more good datanodes being available to try原因: 无法写入;我的环境中有3个datanode,备份数量...原创 2018-11-25 14:47:57 · 2201 阅读 · 0 评论 -
NoNodeAvailableException[None of the configured nodes are available:
原因:Es的jar包版本要和自己安装es的版本的一致,使用公司的es集群也是如此,否则连接不上原创 2018-08-06 17:43:45 · 726 阅读 · 0 评论 -
idea maven package无法将依赖的jar包打入一个jar包
<pluginManagement> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifac...原创 2018-07-05 11:19:17 · 5672 阅读 · 3 评论 -
Invalid or corrupt jarfile 11111111.jar 或者运行JAR包 提示没有主清单属性
我看到网上都是天价main-class 但是我的直接由于META-INF/MANIFEST.MF文件位置出错 后来该成src路径 完美解决原创 2018-06-19 19:03:17 · 1273 阅读 · 0 评论 -
Spring Boot @Value和@ConfigurationProperties(prefix ="spring.datasource" )注解属性值无法赋值结果为null的情况
原因我在配置文件配置了如下的Bean所导致的,删除就好,原理还不知/* //mapper接口扫描器 @Bean public MapperScannerConfigurer mapperScannerConfigurer(){ MapperScannerConfigurer mapperScannerConfigurer=new MapperSc...原创 2018-06-07 17:33:11 · 6310 阅读 · 0 评论 -
fallback method wasn't found
目标方法和回退方法参数和返回类型要一致 ##“`@HystrixCommand(fallbackMethod = “fallbackHi”) public String getHi(String x) { String msg = restTemplate.getForObject(“http://jack/hi“, String.class); return msg; ...原创 2018-05-21 11:15:41 · 2564 阅读 · 3 评论 -
项目新建后启动失败, 提示Unregistering JMX-exposed beans on shutdown 但是没有报错
原因:SpringBoot内置的tomcat没有启动加入<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <...原创 2018-04-28 12:03:48 · 648 阅读 · 0 评论 -
Pom.xml 'dependency' cannot have character [children], because the type's content type is element-on
原因 复制的 下面的内容编码和本地的编码不一致造成的 删除敲一遍就好<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1...原创 2018-04-28 10:07:27 · 1266 阅读 · 1 评论 -
Redis 计数报错 ERR value is not an integer or out of range
改变存值方式为: //10并不是开始计数的值 stringRedisTemplate.opsForValue().set("test","testValue",10);原创 2018-05-09 15:16:58 · 14734 阅读 · 1 评论 -
com.netflix.zuul.exception.ZuulException: Forwarding error
可能是在SpringBoot 的配置文件是.yml形式 而配置没有格式不对 例如下面zuul: routes: routeTest: path: /routeTest/163 url: http://www.163.com 写成zuul: routes:routeTest:path: /routeTest/163url: http://www...原创 2018-04-20 13:51:58 · 336 阅读 · 0 评论 -
本机连接Kafka超时错误信息的解决办法
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.原因 application.properties spring.kafka.bootstrap-servers=127.0.0.1:9092kafka识别的是localhost 不能识别127.0.0.1 解决...原创 2018-04-13 11:47:54 · 5059 阅读 · 1 评论 -
Java连接elasticsearch集群 NoNodeAvailableException 解决方法
集群ES版本要和Pom.xml文件中的es版本一致 如果集群es版本是5.5.2<elasticsearch.version>5.5.2</elasticsearch.version>还有就是端口的原因原创 2018-02-28 09:52:55 · 511 阅读 · 0 评论 -
Spring boot 如果无法访问或者跳转jsp页面
Spring boot 如果无法访问或者跳转jsp页面 可以重建项目或者加上如下的代码即你项目的所在路径/* @Bean public EmbeddedServletContainerFactory embeddedServletContainerFactory() { ConfigurableEmbeddedServletContainer fact原创 2018-02-07 09:53:17 · 3203 阅读 · 2 评论 -
redis ERR This instance has cluster support disabled
Redis 集群的时候报错:redis.clients.jedis.exceptions.JedisDataException: ERR This instance has cluster support disabled 修改配置 redis.conf 配置集群 修改redis.config,添加cluster-enabled yes原创 2018-02-05 11:07:16 · 14997 阅读 · 0 评论 -
测试类报错
pom.xml文件引入测试包@Test不起作用 把scope去掉就好了 junit junit 4.9 test原创 2018-02-01 14:24:30 · 483 阅读 · 0 评论