使用jdk13,需要设置编译版本为13,这里需要使用maven的插件来设置:在pom.xml中加入
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>8888</port>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>13</source>
<target>13</target>
<encoding>utf-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
设置idea编译版本
最新推荐文章于 2024-04-17 04:18:47 发布