SpringSecurity.bcrypt加密解密
package com.ruoyi.web;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class test {
public static void main(String[] args) {
String pass = "1";
BCryptPasswordEncoder bcryptPasswordEncoder = new BCryptPasswordEncoder();
//加密
String hashPass = bcryptPasswordEncoder.encode(pass);
System.out.println(hashPass);
//比较
boolean f = bcryptPasswordEncoder.matches("1",hashPass);
System.out.println(f);
}
}
git提交
(3条消息) 如何将本地代码提交到gitee上,完整图文步骤_70Kylin的博客-CSDN博客_gitee 代码提交
排错
remote origin already exists.
使用
git remote rm origin
提交
git add .
git commit -m '更新'
将本地仓库与远程仓库绑定
git remote add origin
例如: git remote add origin **********************
推送提交
git push -u origin master