Spring Tool Suite在建立weba專案時如果提示日jdk版本太低
阿新 • • 發佈:2021-01-19
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>