<pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.3</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> <testIncludes> <testInclude>none</testInclude> </testIncludes> </configuration> </plugin> </pluginManagement>
插入上述代码 修改成1.8即可
时间: 2024-10-03 13:40:06