• IfmContextHolder(ThreadLocal)


    package com.yundaex.wms.config;
    
    public class IfmContextHolder {
    
        private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();
    
        public static void setCustomerType(String customerType) {
            contextHolder.set(customerType);
        }
    
        public static String getCustomerType() {
            return contextHolder.get();
        }
    
        public static void clearCustomerType() {
            contextHolder.remove();
        }
    }
  • 相关阅读:
    hdu 1978
    hdu 2700
    hdu 1176
    hdu 2390
    hdu 2707
    hdu 1804
    hdu 2703
    hdu 2572
    hdu 1171
    React有状态组件和无状态组件
  • 原文地址:https://www.cnblogs.com/tonggc1668/p/8010611.html
Copyright © 2020-2023  润新知