Skip to content

acpipe/ac_babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

设计模式

java

并发

public class Foo
{
    // SimpleDateFormat is not thread-safe, so give one to each thread
    private static final ThreadLocal<SimpleDateFormat> formatter = new ThreadLocal<SimpleDateFormat>(){
        @Override
        protected SimpleDateFormat initialValue()
        {
            return new SimpleDateFormat("yyyyMMdd HHmm");
        }
    };

    public String formatIt(Date date)
    {
        return formatter.get().format(date);
    }
}
    private static final ThreadLocal<Map<String, String>> MAPPING = ThreadLocal.withInitial(HashMap::new);

    public static void doBefore(Client client) {
        MAPPING.get().put(A, B);
    }



    public static void doAfter(ClientInfoV3 clientInfoV3) {
         MAPPING.get().get(A);
    }

源码

jvm

Spring

代码&&架构&&设计

Netty

机器学习

kafka

Http

Redis

数据库

线上问题定位

基础

Beautiful DT

  • trie 树

design

  • 批量接口通用方案.

About

一些后端学习笔记整理

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages