1. 報錯如下:
發(fā)現(xiàn)是因為 org.redisson:redisson.spring.boot.starter 3.10.6這個包引入不進來導(dǎo)致的報錯
2. 解決 在maven右側(cè)查看Dependencies沖突
嘗試了clean invalid caches and restart都沒法解決后
放大招,查看maven右側(cè)Dependencies每一個點進去看是否有jar包沖突,發(fā)現(xiàn)有一個包里有一個redis的包,文章來源:http://www.zghlxwxcb.cn/news/detail-756485.html
懷疑jar包沖突,嘗試把這個包exclusion掉,可以成功運行了文章來源地址http://www.zghlxwxcb.cn/news/detail-756485.html
參考
- https://blog.csdn.net/weixin_43726137/article/details/122924821
到了這里,關(guān)于Java IDEA java.lang.IllegalStateException: Failed to introspect Class報錯原因和解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!