@@ -0,0 +1,1201 @@
+package me.chanjar.weixin.mp.config.impl;%0A%0Aimport lombok.Data;%0Aimport me.chanjar.weixin.common.bean.WxAccessToken;%0A%0Aimport java.util.concurrent.ConcurrentHashMap;%0A%0A/**%0A * @Author: Brayden Wong%0A * @Date: 2021/1/16%0A * @Description: %E6%8F%90%E4%BE%9Baccesstoken%E4%BF%9D%E5%AD%98%E5%9C%A8concurrenthashmap%E4%B8%AD%E7%9A%84%E5%AE%9E%E7%8E%B0%EF%BC%8C%E6%94%AF%E6%8C%81%E9%AB%98%E5%B9%B6%E5%8F%91%E3%80%82%E4%BB%85%E9%99%90%E4%BA%8E%E5%8D%95%E6%9C%BA%E9%83%A8%E7%BD%B2%E3%80%82%0A */%0A@Data%0Apublic class WxMpMapConfigImpl extends WxMpDefaultConfigImpl %7B%0A%0A  private static final long serialVersionUID = 5311395137835650104L;%0A%0A  private static final ConcurrentHashMap%3CString, String%3E CONCURRENT_HASH_MAP = new ConcurrentHashMap%3C%3E(1);%0A%0A  private static final String MAP_KEY = %22access_token%22;%0A%0A%0A  @Override%0A  public String getAccessToken() %7B%0A    return CONCURRENT_HASH_MAP.get(MAP_KEY);%0A  %7D%0A%0A  @Override%0A  public void setAccessToken(String accessToken) %7B%0A    CONCURRENT_HASH_MAP.put(MAP_KEY, accessToken);%0A  %7D%0A%0A  @Override%0A  public void updateAccessToken(WxAccessToken accessToken) %7B%0A    updateAccessToken(accessToken.getAccessToken(), accessToken.getExpiresIn());%0A  %7D%0A%0A  @Override%0A  public void updateAccessToken(String accessToken, int expiresInSeconds) %7B%0A    CONCURRENT_HASH_MAP.put(MAP_KEY, accessToken);%0A    this.expiresTime = System.currentTimeMillis() + (expiresInSeconds - 200) * 1000L;%0A  %7D%0A%0A%0A%7D%0A

提供access_token保存ConcurrentHashMap中的实现，支持高并发。