// the find
Snailclimb/jsoncat
仿 Spring Boot 但不同于 Spring Boot 的一个轻量级的 HTTP 框架
A Spring Boot clone built on Netty, written in Java, primarily as a learning exercise by the author of JavaGuide. It reimplements IOC, AOP, and Spring MVC-style annotations from scratch. If you want to understand how Spring works under the hood by reading ~2000 lines of clean code, this is the thing.
The IOC container handles circular dependencies via a two-phase initialization approach, which is the hard part most toy frameworks skip. The AOP implementation supports both JDK dynamic proxy and CGLIB, covering the same two paths Spring itself uses. Code is genuinely readable — each concern (routing, parameter resolution, bean lifecycle) has its own class rather than being crammed into one god object. Checkstyle and spotbugs are wired into the build with a pre-commit hook, so the code quality tooling is taken seriously.
Abandoned in November 2020 with several notable gaps still open: no @ControllerAdvice/@ExceptionHandler means unhandled exceptions leak raw stack traces, and no @Configuration class support means the bean wiring story is incomplete. Documentation is almost entirely in Chinese with no English translation, which limits who can actually use it as a reference. Only GET and POST are handled — no PUT, PATCH, DELETE. There are no integration tests against a running server; the tests hit internal methods directly, so you have no coverage of the actual HTTP layer.