解决服务启动慢InetAddress.getLocalHost().getHostName() took 5003 milliseconds to respond. Please verify you

1、在命令行中执行 hostname 命令得到本机的 hostname。比如我的机器运行结果是:mftdeMacBook-Pro.local

2、增加host

#springboot

127.0.0.1 localhost mftdeMacBook-Pro.local

::1 localhost mftdeMacBook-Pro.local

你可能感兴趣的:(SpringBoot,springboot)