zoukankan      html  css  js  c++  java
  • springboot之相关环境设置

    所需环境:jdk1.8,maven3.x,idea2017,springboot1.5.9

    1、jdk1.8

    之前我所用的jdk是1.7,这次使用1.8,因为springboot许多支持只兼容jdk1.8及以上。最好在环境变量中建立两个JAVA_HOME。

    一个为JAVA_HOME7,一个为JAVA_HOME8,需要哪个就将哪个加入到环境变量中,然后在终端查看是否修改成功:

     2、maven3.x

    由于我们更改了jdk的版本,因此,我们需要在maven的配置settings.xml中进行相应的修改。

        <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>

    3、idea

    安装好Intellij IDEA之后,需要指定我们自己的maven:启动之后

    点击configure:

    选择settings:修改成我们自己的maven

  • 相关阅读:
    python中元类(metaclass)的理解
    aiohttp
    async/await
    asyncio
    协程
    Bayesian Non-Exhaustive Classification A case study:online name disambiguation using temporal record streams
    技术网址
    网站
    各种网址
    OpenGL学习网址2
  • 原文地址:https://www.cnblogs.com/xiximayou/p/12242897.html
Copyright © 2011-2022 走看看