This commit is contained in:
2022-08-19 18:17:49 +08:00
parent 2f09039803
commit 1db34ec56e
26 changed files with 2504 additions and 478 deletions

View File

@@ -0,0 +1,16 @@
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
* @author: geng by
* @createDate: 2022/8/1
*/
public class Test {
@org.junit.Test
public void test() throws UnknownHostException {
InetAddress localHost = Inet4Address.getLocalHost();
System.out.println(localHost.getHostAddress());
}
}