更新
This commit is contained in:
16
hd/nladmin-system/src/test/java/Test.java
Normal file
16
hd/nladmin-system/src/test/java/Test.java
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user