Have you checked how Springs DI works? Clean is far from how I would describe it. But I agree that the happy path has been made with less lines of code. That you usually generate a project that is full of auto generated files says something about Spring. Not many will remember Spring fondly.