Spring Boot 在Mac 的Intellij Idea 启动卡顿的解决方法

Freezes after saving caches when debugger connects on macOS Sierra

Freezes for about 9 seconds when performing "Finished. Saving caches" (see the attached screenshot and log).
I noticed nothing obviously abnormal in the log. In fact, the freeze happens AFTER the last line of the log.
This problem only shows up when Debugging, and does not show up when Running.

I have a MacBook Pro 15 with Retina screen running macOS Sierra (10.12).
This happens when I use

the stable IntelliJ IDEA 16, or

  • the EAPs including IntelliJ IDEA 16 2.6 and 3.


These issues can be reproduced with any code on a brand new IDEA installation.

Solution:
Make sure /etc/hosts contains the following:

127.0.0.1    localhost    .local


Replace with the actual name of your machine (the output of hostname command).

你可能感兴趣的:(Spring,Boot)