Mac啟動Springboot專案緩慢問題

2021-10-09 14:32:46 字數 927 閱讀 8074

第一步:開啟/etc/hosts檔案

原內容:

##

# host database

## localhost is used to configure the loopback inte***ce

# when the system is booting. do not change this entry.

##127.0.0.1 localhost

255.255.255.255 broadcasthost

::1 localhost

第二步:新增'你的機器名.local'

修改後:

##

# host database

## localhost is used to configure the loopback inte***ce

# when the system is booting. do not change this entry.

##127.0.0.1 localhost 你的機器名.local

255.255.255.255 broadcasthost

::1 localhost 你的機器名.local

如何檢視機器名:開啟終端,輸入命令hostname

如何找到hosts檔案:訪達右鍵選擇前往資料夾,輸入/etc,無法直接修改的話,複製乙個副本,修改後再覆蓋回去即可。

修改後專案啟動飛快~

springboot 啟動原理

public static void main string args throws exception 作為深入原理的第一篇,我們先來看下spring boot應用是怎麼啟動的。public run string args return context catch throwableex 初始化 ...

springboot 啟動流程

this.resourceloader resourceloader assert.notnull primarysources,primarysources must not be null this.primarysources new linkedhashset arrays.aslist p...

Spring Boot啟動原理

如何啟動乙個springboot應用?public class test 原始碼1 initialize sources 原始碼2 initialize private void initialize object sources 判斷當前應用是否為web應用 this.webenvironment...