Failed to introspect Class [XXX] from ClassLoader [ParallelWebap报错

今天写了一个Controller,结果刚刚本地跑就给了一个惊喜

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘weChatController’: Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.pkc2019.controller.WeChatController] from ClassLoader [ParallelWebappClassLoader

去查了很多大佬的博客说是少jar包,但是我寻思我项目不复杂,就仔细检查了一下提示,发现是多了一个HTTPResponse 类
罪魁祸首:
Failed to introspect Class [XXX] from ClassLoader [ParallelWebap报错_第1张图片
处理方案:删了没有用的HTTPResponse就行

你可能感兴趣的:(Failed to introspect Class [XXX] from ClassLoader [ParallelWebap报错)