Mac 系统启动 IDEA 的 Spring Boot项目慢的问题
修改 hosts 文件
<code>// 打开 hosts 文件并修改 vi /private/etc/hosts </code>
修改成如下所示:
<code>## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost ::1 localhost 你的机器名.local </code>
重启机器,原来启动需要 18s 现在只需要 2s!
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!