springmvc:Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class XXX from ClassLoader [ParallelWebappClassLoader

1、在测试springmvc程序的时候报错:

Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class 
[pers.zhb.controller.TeacherController] from ClassLoader [ParallelWebappClassLoader

这里用的是maven,工具是IDEA,依赖的jar包均已经导入成功,但是依旧报500错误

 

2、解决方案

这个错误类似于IDEA的一个bug,在导入依赖后还需要进行其他的操作:

(1)进入project.....

springmvc:Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class XXX from ClassLoader [ParallelWebappClassLoader

 

 (2)Artifacts:

springmvc:Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class XXX from ClassLoader [ParallelWebappClassLoader

 

 (3)在WEB-INF下新建一个lib文件夹:

springmvc:Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class XXX from ClassLoader [ParallelWebappClassLoader

 

 (4)选中lib文件夹,点击小加号,然后选第一个选项:

springmvc:Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class XXX from ClassLoader [ParallelWebappClassLoader

 

 (5)选中jar包,将jar包导入lib文件夹即可:

springmvc:Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class XXX from ClassLoader [ParallelWebappClassLoader

 

springmvc:Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class XXX from ClassLoader [ParallelWebappClassLoader

上一篇:《实现获取appPackage和appActivity的方法》


下一篇:安卓手机没有twrp的情况,如何下刷入magisk并获得root权限.