| | |
| | | public class test { |
| | | public static void main(String[] args) { |
| | | |
| | | // String s="e10adc3949ba59abbe56e057f20f883e"; |
| | | // PasswordEncoder pw= new BCryptPasswordEncoder(); |
| | | // //加密 |
| | | // String encode=pw.encode(s); |
| | | // System.out.println(encode); |
| | | // //比较密码 |
| | | // boolean matches=pw.matches(s,encode); |
| | | // System.out.println("=============================="); |
| | | // System.out.println(matches); |
| | | String s="123456"; |
| | | PasswordEncoder pw= new BCryptPasswordEncoder(); |
| | | //加密 |
| | | String encode=pw.encode(s); |
| | | System.out.println(encode); |
| | | //比较密码 |
| | | boolean matches=pw.matches(s,encode); |
| | | System.out.println("=============================="); |
| | | System.out.println(matches); |
| | | |
| | | LocalDateTime now = LocalDateTime.now(); |
| | | Integer week = now.getDayOfWeek().getValue(); |
| | | System.out.println("获取当前周:" + week); |
| | | // LocalDateTime now = LocalDateTime.now(); |
| | | // Integer week = now.getDayOfWeek().getValue(); |
| | | // System.out.println("获取当前周:" + week); |
| | | // |
| | | } |
| | | } |