package com.monkeyk.os.infrastructure;

/**
 * @author Shengzhao Li
 */
public abstract class ThreadLocalHolder {

    private static ThreadLocal<String> clientIpThreadLocal = new ThreadLocal<>();

    public static void clientIp(String clientIp) {
        clientIpThreadLocal.set(clientIp);
    }

    public static String clientIp() {
        return clientIpThreadLocal.get();
    }
}
@@ -378,9 +378,52 @@
 ;%0A    %7D%0A
+%0A%0A    private ThreadLocalHolder() %7B%0A    %7D%0A%0A
 %7D

Upgrade codes