![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Exception
是小方啦
这个作者很懒,什么都没留下…
展开
-
IDEA gradle项目编译后乱码
像这样idea 配置也没有问题:https://blog.csdn.net/qq_30504943/article/details/90645631后来想起来可能是gradle原因:解决办法:在build.gralde添加:tasks.withType(JavaCompile) { options.encoding = "UTF-8" }...原创 2019-11-13 16:43:40 · 1504 阅读 · 1 评论 -
Error creating document instance. Cause: org.xml.sax.SAXParseException
1.问题所在:因为语句中有一个小于号“<”,在XML中,会被当成一个页面元素来解析,不会处理为mysql的SQL语句的组成部分2.解决办法解决方法原创 2019-07-30 11:31:43 · 26672 阅读 · 0 评论 -
Incorrect string value: '\xF0\x9F\xA4\x97 3...' for column 'nick_name' at row 1
今日遇到一个棘手的问题,不知道怎么办好,最后决定过滤调emoji不要了,只留下字符串,工具类是他人的,文章结尾有原文地址1. 异常信息 :Incorrect string value: '\xF0\x9F\xA4\x97 3...' for column 'nick_name' at row 12、异常原因:微信昵称含有特殊字符 mysql数据库 存不了 3、修改后:解释:htt...原创 2019-04-12 15:53:31 · 1015 阅读 · 0 评论 -
spring boot 整合pagehelper分页不管用 ,当超过最大页数时返回最后一页的数据
官网详情原创 2019-03-26 20:38:02 · 1959 阅读 · 0 评论 -
@select 报错 org.apache.ibatis.exceptions.PersistenceException
1.异常信息 org.apache.ibatis.exceptions.PersistenceException 2.解决方案mapper里的 映射路径写错原创 2019-03-25 20:20:30 · 406 阅读 · 0 评论 -
request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
1、异常信息: Error response from daemon: ................. request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)2、异常原因:因网络访问限制3、修改后:4、附带:http://hub-mirr...原创 2019-03-04 10:56:53 · 29351 阅读 · 0 评论 -
Fields in a "Serializable" class should either be transient or serializable 加了序列化 还是报这个错
1.异常信息 Fields in a "Serializable" class should either be transient or serializable2.解决方案3.加了序列化 还是没用那就在类中重写 toString()方法4.附带 一位大佬解决sonar问题的题集点击跳转...原创 2019-03-06 19:00:39 · 5326 阅读 · 4 评论 -
idea 创建maven项目 执行mvn命令 :org.apache.maven.project.ProjectBuildingException:
1、异常信息:org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:所有配置均无问题,后显示 连接不到中央仓库,配置私服也是找不到,总之就是 maven项目齐刷刷红红火火2、异常原因:各种找了之后 发现了是.....唉 一言...原创 2019-03-01 11:40:40 · 4769 阅读 · 2 评论 -
Java 各种异常
Java ExceptionErrorRuntime Exception 运行时异常Exceptionthrow 用户自定义异常异常分为两大类型:Error :编译和系统的异常 不允许捕获Exception 代表了标准Java库方法所激发的异常,Exception包括 运行时异常(Runtime_Exception)与非运行时异常(Non_RuntimeExceptio...原创 2018-12-17 11:07:59 · 171 阅读 · 0 评论 -
spring cloud Feign : java.util.concurrent.TimeoutException: null
1.异常信息: java.util.concurrent.TimeoutException: null 2.异常原因3、修改后原创 2018-12-07 00:16:33 · 6855 阅读 · 1 评论 -
Spring Cloud Hystrix熔断器 jar包与配置与代码都没有问题但就是不熔断
Spring Cloud Hystrix熔断器 jar包与配置与代码都没有问题但是就是不熔断因为调用方法是本类调用queryById() 如果从别的类调用此方法 熔断就管用,所以最后得出的结论是 本类调用熔断方法 方法可以执行 但是 @HystrixCommand注解不起作用。...原创 2018-12-06 21:00:17 · 626 阅读 · 3 评论 -
java.util.NoSuchElementException: No value bound
1、异常信息:java.lang.RuntimeException: java.lang.reflect.InvocationTargetException......... java.util.NoSuchElementException: No value bound2、异常原因:3、修改后:原创 2018-12-13 20:18:36 · 12478 阅读 · 9 评论 -
Consider renaming one of the beans or enabling overriding by setting
1. 报错信息Description:The bean 'dataSource', defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class], could not be r...原创 2018-12-04 08:38:04 · 96185 阅读 · 25 评论 -
com.mysql.cj.core.exceptions.InvalidConnectionAttributeException
修改 url url: jdbc:mysql://localhost:3306/test_db?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC原创 2018-12-03 20:19:40 · 139 阅读 · 0 评论 -
org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
1、异常信息java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml'Caused by: org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputExce...原创 2018-12-06 10:26:59 · 16428 阅读 · 6 评论 -
springboot 项目启动就闪退(解决方案)
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>原创 2018-11-01 18:51:40 · 10754 阅读 · 7 评论 -
Spring boot 启动报错 'elasticsearchTemplate' that could not be found.
Spring boot 启动报错(a)异常信息Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2018-10-20 11:40:49.252 ERROR 3928 --- [ main] o.s....原创 2018-10-20 11:51:38 · 44519 阅读 · 21 评论 -
SpringBoot整合ES+Redis时报错( org.springframework.beans.factory.UnsatisfiedDependencyException)
1.异常信息:Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postServiceImpl': Unsatisfied dependency expressed through field 'postRepository'; n...原创 2018-10-20 11:36:45 · 1785 阅读 · 2 评论