zqr99

设置通过Maven创建的工程的JDK版本—一劳永逸

       [1]打开settings.xml文件

       [2]找到profiles标签

       [3]加入一下配置

 

  

<profile>
	<id>jdk1.8</id>
	<activation>
	  <activeByDefault>true</activeByDefault>
	  <jdk>1.8</jdk>
	</activation>
	<properties>
	  <maven.compiler.source>1.8</maven.compiler.source>
	  <maven.compiler.target>1.8</maven.compiler.target>
	  <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
    </properties> </profile>

  

分类:

技术点:

相关文章:

  • 2021-10-08
  • 2021-12-13
  • 2021-10-11
  • 2021-11-18
  • 2022-12-23
  • 2021-12-24
  • 2022-01-11
  • 2022-02-08
猜你喜欢
  • 2021-11-18
  • 2021-04-02
  • 2021-10-09
  • 2021-10-15
  • 2021-07-22
  • 2021-11-14
  • 2021-12-21
相关资源
相似解决方案