本月第一天0時0分
LocalDateTime.of(LocalDate.from(LocalDateTime.now().with(TemporalAdjusters.firstDayOfMonth())), LocalTime.MIN);
本月最后一天23:59:59
LocalDateTime.of(LocalDate.from(LocalDateTime.now().with(TemporalAdjusters.lastDayOfMonth())), LocalTime.MAX);
參考:
https://blog.csdn.net/weixin_41018853/article/details/102934284
https://blog.csdn.net/qq_41267618/article/details/102914243