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就行


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM