创建spring boot应用程序并尝试启动它时,我遇到了一个问题。在eclipse中我总是收到错误消息:
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException我也尝试使用spring-tool-suite,但我收到了相同的错误消息。有人知道问题出在哪里吗?
发布于 2018-02-10 04:21:57
在Eclipse中调试Spring Boot项目时也遇到了这个问题。我在/etc/hosts中为您在控制台错误中看到的本地IP和主机名添加了一个hosts条目。这似乎已经在我的Linux开发机器上弄清楚了。
在Windows上,我相信条目位于C:\Windows\System32\drivers\etc\hosts文件中。
https://stackoverflow.com/questions/48564281
复制相似问题