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"
相關文章
相關標籤/搜索