package com.mvc.utils;

import com.mvc.netty.FzBaowenModel;

import java.util.HashMap;

public class ThreadLocalUtils {

    public static final ThreadLocal<HashMap<Integer, FzBaowenModel>> threadLocal = ThreadLocal.withInitial(() -> {
        System.out.println("当前线程共享变量未设置，自动调用initialValue()方法");
        return new HashMap<Integer, FzBaowenModel>();

    });
}
