spring密码加密 public void contextLoads() { BCryptPasswordEncoder encoder = new BCryptPasswordEncoder(); String encode = encoder.encode("111111"); boolean matches = encoder.matches("111111", encode); System.out.println(encode+"=>"+matches); }