以周一作为周的开始时间:
DateTimeFormatter pattern = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
LocalDateTime nowWeekStart = LocalDate.now().with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY)).atStartOfDay();
String nowWeekStartTime = nowWeekStart.format(pattern);
System.out.println("当周开始时间 = " + nowWeekStartTime);