diff --git a/mica-holidays/src/main/java/net/dreamlu/mica/holidays/impl/HolidaysApiImpl.java b/mica-holidays/src/main/java/net/dreamlu/mica/holidays/impl/HolidaysApiImpl.java index bb8dd39db..7f332e77a 100644 --- a/mica-holidays/src/main/java/net/dreamlu/mica/holidays/impl/HolidaysApiImpl.java +++ b/mica-holidays/src/main/java/net/dreamlu/mica/holidays/impl/HolidaysApiImpl.java @@ -71,14 +71,14 @@ public DaysType getDaysType(LocalDate localDate) { @Override public void afterPropertiesSet() throws Exception { - int[] years = new int[]{2019, 2020, 2021, 2022, 2023, 2024}; - for (int year : years) { - Resource resource = resourceLoader.getResource("classpath:data/" + year + "_data.json"); - try (InputStream inputStream = resource.getInputStream()) { - Map dataMap = JsonUtil.readMap(inputStream, Byte.class); - YEAR_DATA_MAP.put(year, dataMap); - } - } + int[] years = new int[]{2019, 2020, 2021, 2022, 2023, 2024, 2025}; + for (int year : years) { + Resource resource = resourceLoader.getResource("classpath:data/" + year + "_data.json"); + try (InputStream inputStream = resource.getInputStream()) { + Map dataMap = JsonUtil.readMap(inputStream, Byte.class); + YEAR_DATA_MAP.put(year, dataMap); + } + } List extDataList = properties.getExtData(); for (HolidaysApiProperties.ExtData extData : extDataList) { String dataPath = extData.getDataPath(); diff --git a/mica-holidays/src/main/resources/data/2025_data.json b/mica-holidays/src/main/resources/data/2025_data.json new file mode 100644 index 000000000..56cf2067c --- /dev/null +++ b/mica-holidays/src/main/resources/data/2025_data.json @@ -0,0 +1,35 @@ +{ + "1001": 2, + "1002": 2, + "1003": 2, + "1004": 1, + "1005": 1, + "1006": 2, + "1007": 1, + "1008": 1, + "1011": 0, + "0101": 2, + "0128": 2, + "0129": 2, + "0130": 2, + "0131": 2, + "0201": 1, + "0202": 1, + "0203": 1, + "0204": 1, + "0404": 2, + "0405": 1, + "0406": 1, + "0501": 2, + "0502": 1, + "0503": 1, + "0504": 1, + "0505": 1, + "0531": 2, + "0601": 1, + "0602": 1, + "0126": 0, + "0208": 0, + "0427": 0, + "0928": 0 +}