每日一句 ( 2025-11-09 )  

Be as simple as you can be. You'll be astonished to see how uncomplicated and happy your life will be.

尽量简单做自己,你就会惊奇地发现,生活是如此简单而且快乐。———— 《乔布斯》

使用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...