解决办法:
1、在terminal终端输入hostname,保存这个hostname
![](https://img.haomeiwen.com/i3248945/be3d2f5ab9b80f92.png)
2、编辑/etc/hosts文件,编辑本机路由
在127.0.0.1以及::1后 添加步骤1查询到的值
![](https://img.haomeiwen.com/i3248945/36c76eaf0e1094c9.png)
3、再次运行spring工程,发现问题解决
解决办法:
1、在terminal终端输入hostname,保存这个hostname
2、编辑/etc/hosts文件,编辑本机路由
在127.0.0.1以及::1后 添加步骤1查询到的值
3、再次运行spring工程,发现问题解决
本文标题:MacOS Idea Spring工程启动报InetAddres
本文链接:https://www.haomeiwen.com/subject/bkhuxktx.html
网友评论