This Spring Boot application allows you to generate and read QR codes.
-
QR Code Generation:
- Create QR codes from provided data.
- Support for different QR code generation strategies.
-
QR Code Reading:
- Decode the content of a QR code from an image file.
-
QR Code Generation Strategies:
- Utilizes a strategy pattern for generating QR codes.
- Easily swap between different strategies, such as default and high-security.
-
AOP Logging and Exception Handling:
- Use Aspect-Oriented Programming (AOP) for logging method executions.
- Handle exceptions gracefully in controller methods.
-
Web Configuration:
- Leverage browser caching for static resources.
- Spring Boot
- ZXing (QR Code library)
Easily configure and switch between different QR code generation strategies.
HTTP/2 support, server compression, and encoding settings.
This application also supports client-side caching to improve the performance and load times for static resources.
-
Static Resource Caching Static resources, such as stylesheets, scripts, and images, benefit from client-side caching. By setting appropriate cache headers, the browser can store these resources locally, reducing the need to fetch them from the server on subsequent visits.
-
Cache Headers:
- The application is configured to set cache headers for static resources located in the
/static
path. - A cache period of one year is specified to ensure long-term caching, enhancing the user experience by minimizing resource fetching.
- The application is configured to set cache headers for static resources located in the