1. 程式人生 > 其它 >Spring Tool Suite在建立weba專案時如果提示日jdk版本太低

Spring Tool Suite在建立weba專案時如果提示日jdk版本太低

技術標籤:Spring Tool Suitemaven

Spring Tool Suite在建立weba專案時如果提示日jdk版本太低時,可以直接設定maven的引數來解決,在settings.xml中新增相應的jdk版本,如下:

<profile>  
  <id>jdk-1.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>