在pom.xml中加入以下片段:

 <build>

    <plugins>

   <plugin>

     <artifactId>maven-compiler-plugin</artifactId>

     <configuration>

       <source>1.6</source>

       <target>1.6</target>

       <encoding>UTF-8</encoding>

     </configuration>

    </plugin>

  </plugins>

  </build>

同时保证build path里的JRE设置与pom.xml内一致。

相关文章:

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