zhaopengcheng

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>

 

分类:

技术点:

相关文章:

  • 2021-11-18
  • 2021-12-06
  • 2021-07-30
  • 2021-05-03
  • 2021-11-01
  • 2021-12-25
猜你喜欢
  • 2021-11-18
  • 2021-11-02
  • 2021-06-13
  • 2021-11-03
  • 2021-11-18
  • 2021-11-18
相关资源
相似解决方案