有事没事领个红包

eclipse jdk版本设置

1 Java Build Path(项目的编写环境配置):

在项目上单击右键,properties -> Java Build Path -> Libraries,选择JRE System Library -> Edit,选择想要的jdk版本;
  image

 

2 选择单个项目的编译器:

在项目上单击右键,properties -> java compiler , 绑定项目级别的compiler类型;
image

 

 

3 修改maven项目的pom.xml配置文件(应该是选择项目的jdk编译器,优先级最高):

<plugins>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
              <source>1.8</source>
              <target>1.8</target>
          </configuration>
        </plugin>
        
    </plugins>

 

posted @ 2018-08-12 13:25  crazyCodeLove  阅读(2595)  评论(0编辑  收藏  举报