In Java 8, how do I get my hostname without hard-coding it in my environment?

后端 未结 0 650
渐次进展
渐次进展 2021-02-12 09:47

We just upgraded to Java 8 on Amazon Linux. We are using Spring 4.3.8.RELEASE. It used to be that we could get our machine hostname by setting up beans in our application cont

相关标签:
回答
  • 消灭零回复
提交回复
热议问题