
Bug修复记录
有趣的灵魂_不世俗的心
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Error creating bean with name ‘jwtTokenEnhancer‘ defined in class path resource
报错信息Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtTokenEnhancer' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurati原创 2022-03-05 10:09:59 · 2398 阅读 · 1 评论 -
cpu利用率高排查
1、首先使用top命令找到占用Cpu高的进程top相关的操作默认按照CPU利用率排序2、确定进程对应的相关程序:ps 1149623、查看该进程相应的线程的详细数据top -Hp 114962确定该进程中是哪个线程占用的cpu最高4、获取线程十六进制pidprintf "%x\n" 1172145、获取线程状态信息,看是否存在报错jstack 117214|grep -A 30 1c9de若无相关报错信息,则查看相关项目的日志信息和jvm情况查看堆内存使用情况j原创 2022-02-03 19:03:18 · 2522 阅读 · 0 评论 -
PG修改表字段长度报错 cached plan must not change result type Hint: Please restore the result type
报错代码org.postgresql.util.PSQLException: ERROR: cached plan must not change result type org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161) org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.ja原创 2021-08-12 16:02:50 · 2963 阅读 · 0 评论 -
XXL-JOB使用问题总结
问题一:XXL-JOB的服务器端和用户端版本必须保持一致,不然会报错问题二: 由于xxl-job使用的一些依赖包与原有项目中的依赖包存在版本冲突,造成java.lang.NoClassDefFoundError错误本人实际遇到问题:1、报错信息如下,造成该问题原因,由于hessian包版本如项目中其他包存在冲突造成,解决方案,移除xxl-job自带的hessian添加更低版本的包。...原创 2020-01-10 15:10:53 · 8374 阅读 · 0 评论 -
Error starting ApplicationContext. To display the auto-configuration report re-run your application
当我们看到下图报错信息时,第一反应应该是注解是不是漏了。比如说是不是@Service没有在业务实现层加上。如果发现注解都正常的操作,哪就可能是另外的问题,我们只需要找到对应的类,查找类中是否存在读取application.yml配置文件的操作,如果又那就可能是application.yml配置文件中,没有配置该键值对信息,解决办法便是在配置文件加上配置总结,以上问题解决方案:1、检...原创 2019-12-19 14:07:39 · 1558 阅读 · 0 评论 -
Pointcut is malformed: error Type referred to is not an annotation type: com$citex$otc$trade$aspect$
首先我们看到的错误代码Pointcut is malformed: error Type referred to is not an annotation type: com$manager$aspect$TradeOperation从上可以知道是Pointcut表达式中的注解类没有找到,例如下@Pointcut("@annotation(com.manager.aspect.Trad...原创 2019-12-18 15:39:24 · 573 阅读 · 1 评论 -
POM文件首行报错(Maven Configuration Problem)
首先我们看一下报错的图示我们分析一下为什么会造成以上错误信息,首先我们要知道这个报错不影响程序的执行。该问题一般是版本不兼容导致的问题,这里是因为maven-jar-plugin 插件的版本造成的。因此只需要定义该插件的版本信息即可。<properties <maven-jar-plugin.version>3.0.0<...原创 2019-10-25 17:11:04 · 730 阅读 · 0 评论 -
PageHelper分页注意事项
1、如果一个方法中存在多个查询方法,在使用分页时。PageHelper.startPage( pageBean.getPageNum(), pageBean.getPageSize() );这个语句一定要放在你调用需要分页的查询方法的上一行代码,不然的会造成分页失败。2、在使用分页时,pageBean.setList(earnList);该代码中的对象必须是调用查询方法映射的出来的对象,否...原创 2019-09-16 10:22:17 · 859 阅读 · 0 评论 -
微服务框架接口调用失败记录(错误代码404)
在微服务中我们一般为划分为独立模块,在进行接口调用时,有时访问失败,很大一部分原因出现在SpringBoot配置文件写的有问题。微服务框架接口调用失败记录(错误代码404)是因为没有项目的名称spring: application: name: member指定名称后成功访问,不报错...原创 2019-07-05 18:44:36 · 4156 阅读 · 0 评论 -
微服务架构中出现Bean注入失败Consider defining a bean of type 'com.hongyu.api.redis.BaseRedisService' in your co
控制台错误详细信息***************************APPLICATION FAILED TO START***************************Description:Field baseRedisService in com.hongyu.member.service.impl.DemoApiServiceImpl required a ...原创 2019-07-05 18:16:16 · 8901 阅读 · 1 评论 -
Springboot启动application报错:Field userMapper in xxx required a bean of type xx that could not be found
***************************APPLICATION FAILED TO START***************************Description:Field userMapper in com.springboot.service.UserService required a bean of type 'com.springboot.dao....转载 2019-07-02 08:30:27 · 2435 阅读 · 2 评论 -
Mybatis报错invalid comparison: java.util.Date and java.lang.String
Mybatis报错invalid comparison: java.util.Date and java.lang.String报错原因:<if test="startTime != null and startTime !='' and endTime != '' and endTime != null ">此标签中出现startTime != '' 的表达式,这里...原创 2019-06-10 11:00:24 · 256 阅读 · 0 评论 -
java连接ActiveMQ时报错:Unknown data type: 47
java连接ActiveMQ时报错:javax.jms.JMSException: Unknown data type: 47at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:72)at org.apache.activemq.ActiveMQConnection.syncSend...原创 2019-06-03 14:09:52 · 2586 阅读 · 0 评论