springboot解决java.lang.ArrayStoreException异常
作者:cnsu-cmh 时间:2023-06-24 19:22:25
idea工具使用 Java Exception Breakpoint 添加异常断点,在IDE里,新建一个断点,类型是Java Exception Breakpoint
当断点起效时,查看AnnotationUtils.findAnnotation(Class<?>, Class<A>, Set<Annotation>) line: 686
函数的参数。
可以发现
clazz是
class
com.github.pagehelper.autoconfigure.MapperAutoConfiguration$$EnhancerBySpringCGLIB$$c62fb34c
annotationType是
interface org.aspectj.lang.annotation.Aspect
说明是尝试从MapperAutoConfiguration
里查找@Aspect
信息时出错的。
MapperAutoConfiguration
里确实没有@Aspect,
但是为什么抛出java.lang.ArrayStoreException。
更糟糕的是MapperAutoConfiguration 是源码包中的
。
接着往下再看。。。
没办法,只能在异常类里面打断点看,异常是java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
,那就在TypeNotPresentExceptionProxy构造中打断点
一看这恍惚明白了什么,java.lang.ClassNotFoundException: org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration
查看之后发现pom里面没写版本号...
来源:https://blog.csdn.net/u011229848/article/details/81567223
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
深入分析C# Task
arthas jprofiler做复杂链路的调用分析
![](https://img.aspxhome.com/file/2023/6/78956_0s.png)
Qt GUI图形图像开发之Qt表格控件QTableView简单使用方法及QTableView与QTableWidget区别
![](https://img.aspxhome.com/file/2023/4/117774_0s.jpg)
Java中List集合去重方法以及效率对比
java中方法递归的简单示例
![](https://img.aspxhome.com/file/2023/1/66041_0s.png)
Android Drawerlayout实现侧滑菜单效果
Android Bitmap像素级操作详解
![](https://img.aspxhome.com/file/2023/6/125356_0s.png)
Java实现验证码具体代码(图片、汉字)
![](https://img.aspxhome.com/file/2023/0/60990_0s.png)
比Math类库abs()方法性能更高的取绝对值方法介绍
Java实现五子棋游戏的完整代码
![](https://img.aspxhome.com/file/2023/8/62328_0s.jpg)
Android学习笔记之应用单元测试实例分析
![](https://img.aspxhome.com/file/2023/9/138609_0s.jpg)
C# 设计模式系列教程-模板方法模式
![](https://img.aspxhome.com/file/2023/8/111118_0s.png)
编写android拨打电话apk应用实例代码
Springboot-Starter造轮子之自动锁组件lock-starter实现
![](https://img.aspxhome.com/file/2023/7/103977_0s.jpg)
Android Gradle模块依赖替换使用技巧
![](https://img.aspxhome.com/file/2023/0/138170_0s.jpg)
Java中比较抽象类与接口的异同
Java 定时任务技术趋势详情
![](https://img.aspxhome.com/file/2023/0/96070_0s.webp)
Java多线程Thread基础学习
![](https://img.aspxhome.com/file/2023/8/67688_0s.png)