福哥在编译项目的时候发现报出了如下错误:
修改SDK版本就可以了,这里包括了五个地方。
首先就是pom.xml里面的版本。
File > Project Structure > Project Settings > Project
File > Project Structure > Project Settings > Modules
File > Project Structure > Platform Settings > SDKs
File > Settings > Build, Execution, Deployment > Compiler > Java Compiler
这个地方其实是根据pom.xml里面的版本自动设置的,所以第一个地方改对了这里基本不用动,检查一下就可以了。