动态获取服务器ip和端口号工具类
package com.jinruan.common.core.utils;
import org.mybatis.logging.Logger;
import org.mybatis.logging.LoggerFactory;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Enumeration;
public class IpUtil {
private static final Logger logger = LoggerFactory.getLogger( IpUtil.