I don't have any other issues with java and STS starts up fine but when I try to run my app as "Run as Spring Boot App" (or any of the samples), the console is empty for up to 5 minutes, before I get the familiar "Spring Boot" ASCII art. Then it works fine.

有帮助吗?

解决方案

Turns out there was an issue resolving the network host. I fixed it by executing this command from the console:

scutil --set HostName "localhost"

其他提示

It must be something with you environment. You may try running the app in other IDE like Intellij. I presume it's the STS causing the problem. You may also try running it in fresh STS installation. I'm using latest OSX and Intellij and have no problems.

If you want to play around with this you could also analyse a java code dump to see what's happening inside your jvm: http://www.javacodegeeks.com/2013/02/analysing-a-java-core-dump.html

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top