[Open Source] A lightweight holiday-checking utility for date classification: working days, adjusted working days, public holidays, and weekends
![[Open Source] A lightweight holiday-checking utility for date classification: working days, adjusted working days, public holidays, and weekends](https://yy123.ink/api/img/1782607299399-o8qryr.jpg)
1. Project Overview

Spring-boot-holiday-starter v1.0.0
A lightweight utility for checking holidays!
Spring-boot-holiday-starter is a lightweight utility for checking holidays. It mainly addresses two needs: retrieving holiday data and determining whether a date is a holiday.
2. Open Source License
Licensed under Apache-2.0
3. Screenshots

4. Feature Overview
Preface
Due to project requirements, the server has no network access. In some scenarios, it is necessary to determine whether a date is a holiday, so I created this utility class for convenient use.
Spring-boot-holiday-starter: A lightweight utility for checking holidays! Date classification: working days, adjusted working days, public holidays, and weekends.
5. Tech Stack
Spring-boot-holiday-starter is a lightweight utility for checking holidays. It mainly addresses two needs: retrieving holiday data and determining whether a date is a holiday.
-
Usage Instructions
-
spirngboot 2.7 +
-
jdk17 +
Usage
-
YML Configuration
-
HolidayService Interface (for retrieving calendar data and checking holidays / working days / adjusted working days / weekends)
-
getDate method: Retrieves calendar data
-
isHoliday method: Checks whether a date is a public holiday
-
isWorkDay method: Checks whether a date is a working day or an adjusted working day
-
isWeekend method: Checks whether a date falls on a weekend
-
HolidayFixService Interface (for repairing calendar data and updating JSON files in local mode)
-
reset method: Resets the data and refreshes it
-
fix method: Repairs cached data
-
updateFile method: Updates JSON file data
Note: JSON files can be generated using GenerateHolidayTest. See HolidayTest for examples.
Roadmap
springboot
-
Automatically parses official "Holiday Arrangement Notices" and provides multiple online parsing methods
-
Supports Redis
-
Supports MySQL
-
Supports MinIO
-
Supports MongoDB
solon
-
Supports Solon