What problem does it solve?
This Skill automates the reverse-engineering of a legacy flow's data layer into a Spring Boot backend, significantly reducing the time and effort required to modernize legacy applications.
Core Features & Use Cases
- Reverse Engineering: Extracts the data layer from legacy code (Struts action → service/builder → DAO → stored procedure) and transforms it into a Spring Boot model.
- Endpoint Generation: Constructs RESTful endpoints and associated service classes that mirror the legacy data structure.
- Verification: Verifies the generated endpoints against legacy data to ensure accuracy.
- Use Case: When modernizing a legacy Java/Struts application to a React frontend with Spring Boot backend, this Skill can automatically generate the new backend endpoints, simplifying the process.
Quick Start
Run the extract_backend.py script with the path to the Java source file, the source directory, the SQL map directory, and the project JSON file. Then, run the scaffold_backend.py script with the generated model and output directory.