Commit 4179a1138e7700e9fa237cd686cce080e757290e

Authored by 王通
1 parent 790a2c30

1.数知梦接口需要扩展进/external

src/main/java/com/bsth/util/ThreadLocalUtils.java 0 → 100644
  1 +package com.bsth.util;
  2 +
  3 +public class ThreadLocalUtils {
  4 +
  5 + private static ThreadLocal<String> passwords = new ThreadLocal<>();
  6 +
  7 + public static void setPassword(String password) {
  8 + passwords.set(password);
  9 + }
  10 +
  11 + public static String getPassword() {
  12 + return passwords.get();
  13 + }
  14 +}