snippet
たまーに使おうとしたとき忘れてるので。 public String hostname() { try { InetAddress address = InetAddress.getLocalHost(); return address.getHostName(); } catch (UnknownHostException e) { throw new RuntimeException(e); } } ホスト名でconfig…
たまーに使おうとしたとき忘れてるので。 public String hostname() { try { InetAddress address = InetAddress.getLocalHost(); return address.getHostName(); } catch (UnknownHostException e) { throw new RuntimeException(e); } } ホスト名でconfig…