Java异常大杂烩
Java异常大杂烩
刘总Java
刨根问底,知其然知其所以然。
不做标题党,纯纯的干货。
在曲折中前进,在前进中曲折...
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingExce
文章摘要:开发者在MyBatis查询时遇到参数绑定异常,提示"pId"参数未找到。问题根源在于Mapper层错误导入了feign.Param注解包,而非正确的org.apache.ibatis.annotations.Param包。虽然代码中@Param注解使用方式正确,但错误的包导入导致参数绑定失败。该案例提醒开发者需仔细检查注解包的导入来源,特别是当出现看似正确的代码却报错时,应优先验证关键注解的包路径是否正确。原创 2025-12-25 15:07:40 · 97 阅读 · 0 评论 -
spring.config.import 不存在
例如,如果你使用了bootstrap.properties或bootstrap.yml文件,并且在该文件中也设置了与Nacos相关的配置,那么这些配置可能会覆盖application.properties或application.yml中的spring.config.import设定。请检查你的项目中是否有多个配置文件,并确认它们的加载顺序和配置内容。请检查你的配置文件中spring.config.import的值是否符合这种格式。确保spring.config.import是在正确的配置文件中设置的。原创 2025-08-09 22:23:51 · 520 阅读 · 0 评论 -
Specified class is an interface
Specified class is an interface 指定的类是接口异常错误信息Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.xxx.xxxMapper]: Specified class is an interface at org.springframework.beans.factory.support.SimpleInstantiat..原创 2021-03-31 10:55:38 · 10236 阅读 · 3 评论 -
execute() is called on closed connection
记一次排查线上环境问题的流程总结,其实研发环境也有这样的问题,并发不够,没复现,隐藏的一个BUG。异常信息Caused by: execute() is called on closed connection at com.pharmacodia.chemaxon.internal.JChemSearchInner.searchForBizId(JChemSearchInner.java:205) ~[cloud-bc-chemaxon-3.0.0.jar!/:na] at com.p原创 2020-12-23 21:35:24 · 810 阅读 · 0 评论 -
StubRoutines::jlong_disjoint_arraycopy
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8205989原创 2020-12-11 11:12:17 · 1530 阅读 · 0 评论 -
int 和 Integer 作为接收参数类型,参数长度不能大于10?
今天的博客主题: Java开发路上的小坑坑int 和 Integer 作为接收参数类型,参数长度不能大于10?What???就问问小菜鸟惊讶不惊讶,大佬略过......public static void main(String[] args) { testint(1111111111); // 10个1 compile success testI...原创 2020-04-22 14:20:18 · 3983 阅读 · 1 评论
分享