Spring Boot CRUD Generator
raw JSON → 0.0.8 verified Sat May 09 auth: no python
A Python tool that generates Spring Boot CRUD code (controller, service, repository, entity) from a database table. Version 0.0.8, with infrequent releases.
pip install spring-boot-crud-generator Common errors
error ModuleNotFoundError: No module named 'spring_boot_crud_generator' ↓
cause Package not installed or misspelled import.
fix
Run 'pip install spring-boot-crud-generator' and use correct import path: 'from spring_boot_crud_generator.cli import main'.
error AttributeError: module 'spring_boot_crud_generator' has no attribute 'cli' ↓
cause Wrong import attempt (e.g., 'import spring_boot_crud_generator' and then using 'spring_boot_crud_generator.cli').
fix
Use 'from spring_boot_crud_generator.cli import main' directly.
Warnings
gotcha This tool generates Java Spring Boot code, not Python code. Ensure your target project is a Spring Boot project. ↓
fix Use this only for Spring Boot backends; not for Python applications.
gotcha The generated code may require manual setup of database connection and entity mapping. The tool does not handle custom SQL or relationships. ↓
fix Review and customize generated files before integrating.
Imports
- main wrong
xxxcorrectfrom spring_boot_crud_generator.cli import main
Quickstart
from spring_boot_crud_generator.cli import main
import sys
sys.argv = ['prog', '--help']
try:
main()
except SystemExit:
pass