踩坑日記
博客上很多博主說這個(gè)是jdk版本的問題,我所有地方都設(shè)置的是jdk1.8,但還是報(bào)錯(cuò)
Caused by: java.lang.UnsupportedClassVersionError: org/springframework/cloud/bootstrap/RefreshBootstrapRegistryInitializer has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Caused by: java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.boot.BootstrapRegistryInitializer : org.springframework.cloud.bootstrap.RefreshBootstrapRegistryInitializer
Caused by: java.lang.UnsupportedClassVersionError: org/springframework/cloud/bootstrap/RefreshBootstrapRegistryInitializer has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
我的java -version 是jdk1.8,javac -version也是1.8請問有人遇到類似情況嗎?文章來源:http://www.zghlxwxcb.cn/news/detail-507931.html
1、我的報(bào)錯(cuò):
2、雙擊查找
3、點(diǎn)進(jìn)查找到的.class文件
4、刪除高版本、選折低版本的
5、至于為什么不能maven clean install , 因?yàn)槊看蝝aven clean install 之后又出現(xiàn)了類似4.0.1的高版本的jar包,怎么讓它不產(chǎn)生4.0.1高版本的jar包請各位網(wǎng)友提供思路。文章來源地址http://www.zghlxwxcb.cn/news/detail-507931.html
到了這里,關(guān)于this version of the Java Runtime only recognizes class file versions up to 52.0的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!