每日一句 ( 2025-04-30 )  

The best cure for the body is a quiet mind.

对身体最好的治疗就是让头脑安静。———— 拿破仑

使用Java Hutool包获取下一个周五

最近在做一个抽奖活动,大概逻辑就是每期活动每个人最多可以抽10次, 活动是在每周五进行。如果你在本期活动已经抽完了5次, 就要提示 你的抽奖次数已用完,下期抽奖将于 xxx 时间开始。所以就需要计算一下下期活动是什么时候。所以就使用了java hutool工具来完成: import cn.hutool.core.date.DateField; import cn.hutool.core.date.DateTime; import cn.hutool.core.date.Week; import cn.hutool.core.util.DateUtil; public class NextFrida...