Intellij idea began to report an error: Error: java does not support release version 5. This error can be solved according to the following method;
https://blog.csdn.net/qq_22076345/article/details/82392236
But then I got this error again
Just add the following code in pom.xml, because my version is 9, you can modify it according to your own version
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<java.version>9</java.version>
<maven.compiler.source>9</maven.compiler.source>
<maven.compiler.target>9</maven.compiler.target>
</properties>