From Untested Spaghetti to Well-Rested Developers
summary
A legacy Spring MVC application with heavy code duplication and no tests is transformed into a well-tested REST API using Spring, AspectJ, and custom converters/filters. The approach adds per-request MDC/correlation-ID logging into Logstash/Kibana and Sentry, Git-derived runtime version tags, interactive Swagger docs, and a single-annotation-per-API solution implemented with AspectJ; integration tests use Spock and rest-assured against real testbeds, with CI and Vagrant automating releases, resulting in no nighttime error calls for over a year.
AI-written summary · about
chapters (10)
- 0:00Project context
- 5:49First challenges
- 9:47Tracking requests
- 17:31Removing redundant code
- 23:57Standardizing API responses
- 28:17Async operations and integration tests
- 30:31Automated tests and Swagger docs
- 35:07CI/CD and builds
- 40:07Version management
- 43:00Summary








