在pom.xml文件中添加如下代码:

           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>

 

相关文章:

  • 2021-11-17
  • 2021-12-05
  • 2021-07-07
  • 2021-12-18
  • 2021-12-27
猜你喜欢
  • 2021-09-24
  • 2021-07-11
  • 2021-09-06
  • 2021-06-16
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案