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

 

<build>

  <plugins>

    <plugin>

      <groupId>org.apache.maven.plugins</groupId>

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

      <version>2.1</version>

      <configuration>

        <source>1.7</source>

        <target>1.7</target>

       </configuration>

    </plugin>

  </plugins>

</build>

 

然后重新update maven就可以解决该问题

 

原文地址:http://blog.csdn.net/ludengji/article/details/21299987

相关文章:

  • 2021-10-25
  • 2021-05-24
  • 2021-06-28
  • 2021-05-25
  • 2021-08-19
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-28
  • 2021-11-24
  • 2021-10-14
  • 2021-08-04
相关资源
相似解决方案