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 类
罪魁祸首:
在这里插入图片描述
处理方案:删了没有用的HTTPResponse就行

发布了53 篇原创文章 · 获赞 5 · 访问量 8303

猜你喜欢

转载自blog.csdn.net/weixin_44494373/article/details/102578127