I see that my JDK configuration is 8, and I feel that it’s OK. Later I found out that my JDK configuration is 8 pom.xml The file configuration is as follows:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
<encoding>utf-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
Change 11 to 8, problem solved!!!