refactor(examples): Fesod Examples Module Refactoring #770
+1,574
−9,827
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of the pull request
Closes: #725
This PR implements the Fesod Examples Module Refactoring proposal to restructure the
fesod-examplesmodule by moving example code fromsrc/test/javatosrc/main/javafollowing Apache Spark/Flink patterns.What's changed?
Phase 1: Restructured to Production Layout
Moved demo examples to
src/main/java:org.apache.fesod.sheet.examples/:quickstart/- Simple read/write examples with data classesread/- Read examples with listeners, converters, and data classeswrite/- Write examples with handlers, styles, merge, and image exportfill/- Template fill examplesadvanced/- Advanced usage examples (custom converters, large files, password protection)web/- Spring Boot web integration examplesutil/- Utility classes for examplesKey Examples Added/Migrated:
SimpleReadExample,SimpleWriteExample- Quickstart examplesBasicReadExample,ConverterReadExample,IndexOrNameReadExample,MultiSheetReadExample,NoModelReadExample,ExceptionHandlingExampleBasicWriteExample,StyleWriteExample,MergeWriteExample,ImageWriteExampleFillBasicExample,FillComplexExampleCustomConverterExample,LargeFileWriteExample,PasswordProtectionExampleWebExampleController,FesodWebApplicationPhase 2: Cleaned Up Temp Directory Classes
Removed all classes in the
temp/directory:Also removed:
Other Improvements
System.outwith proper SLF4J logging throughout examplesfastjson2dependency for JSON serialization in examplessrc/main/resources/example/