第一步:引入  druid-1.0.1.jar 架包

 第二步: 编写程序

 

package nihao;

import com.alibaba.druid.filter.config.ConfigTools;

public class er {

@SuppressWarnings("static-access")
public static void main(String[] args) {
try {
ConfigTools configTools = new ConfigTools ();
//System.out.println(configTools.encrypt("Tanggang123@"));
System.out.println(configTools.encrypt("root"));

} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}

 

相关文章:

  • 2021-05-06
  • 2022-12-23
  • 2021-10-28
  • 2021-08-31
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-10-18
  • 2021-07-22
  • 2021-10-14
相关资源
相似解决方案