GOODBOY008 opened a new pull request, #770:
URL: https://github.com/apache/fesod/pull/770

   ## Purpose of the pull request
   
   Closes: #725
   
   This PR implements the Fesod Examples Module Refactoring proposal to 
restructure the `fesod-examples` module by moving example code from 
`src/test/java` to `src/main/java` following Apache Spark/Flink patterns.
   
   ## What's changed?
   
   ### Phase 1: Restructured to Production Layout
   
   **Moved demo examples to `src/main/java`:**
   - Created new package structure under `org.apache.fesod.sheet.examples/`:
     - `quickstart/` - Simple read/write examples with data classes
     - `read/` - Read examples with listeners, converters, and data classes
     - `write/` - Write examples with handlers, styles, merge, and image export
     - `fill/` - Template fill examples
     - `advanced/` - Advanced usage examples (custom converters, large files, 
password protection)
     - `web/` - Spring Boot web integration examples
     - `util/` - Utility classes for examples
   
   **Key Examples Added/Migrated:**
   - `SimpleReadExample`, `SimpleWriteExample` - Quickstart examples
   - `BasicReadExample`, `ConverterReadExample`, `IndexOrNameReadExample`, 
`MultiSheetReadExample`, `NoModelReadExample`, `ExceptionHandlingExample`
   - `BasicWriteExample`, `StyleWriteExample`, `MergeWriteExample`, 
`ImageWriteExample`
   - `FillBasicExample`, `FillComplexExample`
   - `CustomConverterExample`, `LargeFileWriteExample`, 
`PasswordProtectionExample`
   - `WebExampleController`, `FesodWebApplication`
   
   ### Phase 2: Cleaned Up Temp Directory Classes
   
   **Removed all classes in the `temp/` directory:**
   - Bug reproduction tests for already-fixed issues
   - Issue-specific tests (issue1662, issue1663, issue2319, issue2443, issue406)
   - Experimental code not part of standard examples
   - POI compatibility tests
   - Cache-related tests
   - Large file tests that are no longer relevant
   
   **Also removed:**
   - Obsolete test resource files (CSV, XLS/XLSX test files for removed temp 
tests)
   - Duplicate data classes and listeners
   
   ### Other Improvements
   
   - Replaced `System.out` with proper SLF4J logging throughout examples
   - Updated logback configuration to use proper console pattern
   - Added `logback-classic` dependency for proper logging support
   - Added `fastjson2` dependency for JSON serialization in examples
   - Migrated resource files to `src/main/resources/example/`
   - Updated package names to follow new structure
   - Cleaned up and improved code comments (translated Chinese comments to 
English)
   - Fixed deprecated API usages
   
   ## Checklist
   
   - [x] I have read the [Contributor 
Guide](https://fesod.apache.org/community/contribution/).
   - [x] I have written the necessary doc or comment.
   - [x] I have added the necessary unit tests and all cases have passed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to