时间:2024-10-12 04:08:07
1、在项目中引入一个hutool的jar包
3、DateUtil.getChineseZodiac(year);计算出年份对应的生效
5、这里需要注意年份需要时1900年后,否则会显示null