10.08-Idea的相关配置

1、Idea导入新项目Maven路径发生改变的问题git

1 --> 项目的设置spring

2 -->全局的设置springboot

在 2 中的Default Setting中设置Maven,就能够避免导入新项目maven的路径发生改变的状况(固然1中部分设置也是全局的,这里主要针对maven的设置)app

2、Idea的springboot项目热部署设置ssh

2.一、 在pom.xml中加入依赖maven

<!--热部署-->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
    <scope>runtime</scope>
</dependency>

<plugins>
    <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
            <fork>true</fork>
        </configuration>
    </plugin>
</plugins>

2.二、 系统设置spring-boot

在File - Setting - Build,Execution,Deployment - Complier -Build project automatically 勾上ui

而后,Ctrl + Shift + Alt + /  ,以下图:spa

找到 compiler.automake.allow.when.app.running   勾上3d

3、Idea上传项目到Gitee上

3.一、 在 https://gitee.com/  上注册码云帐户,安装Git , 完成之后,打开Git Bash

3.二、 生成链接GItee的SSH Key

    (1) 输入注册时的邮箱,回车

         ssh-keygen -t rsa -C "xxxxx@xxxxx.com"

    (2) 而后一直回车,以下图即为成功

        

    (3) 查看你的 public key,并把他添加到码云(Gitee.com) SSH key添加地址:https://gitee.com/profile/sshkeys)
   cat ~/.ssh/id_rsa.pub

    (4)添加后,在终端(Terminal)中输入 “ssh -T git@gitee.com”, 若返回 “Welcome to Gitee.com,yourname!”, 则证实添加成功 (注:有可能出现Warning的状况,也属于成功)

3.三、 设置基本信息

$ git config --global user.name "yourname"
$ git config --global user.email "youremail@youremail.com"
相关文章
相关标签/搜索