1.转换类 import com.google.common.base.Strings; import java.security.InvalidParameterException; import java.util.Arrays; import java.util.regex.Pattern; import java.util.stream.Collectors; /** * Created by zhangjy on 2019/4/16. */ public class IpV4Utils