public class IpAddrHolder extends Object
获取ip地址的方法较慢,并且每个资源装配需要装填ip地址,所以用ThreadLocal临时缓存
IpAddrHolder()
static void
clear()
static String
get()
set(String ip)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IpAddrHolder()
public static void set(String ip)
public static String get()
public static void clear()
Copyright © 2024. All rights reserved.