| | |
| | | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
| | | import org.springframework.security.crypto.password.PasswordEncoder; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | | * @Date 2022/2/24 10:15 |
| | |
| | | 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); |
| | | //// |
| | | |
| | | // String format = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); |
| | | // System.out.println(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); |
| | | // /** |
| | | // * 时间字符串转为LocalDateTime |
| | | // */ |
| | | // LocalDateTime parse = LocalDateTime.parse(format, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); |
| | | // System.out.println(parse); |
| | | |
| | | } |
| | | } |