In a spring it’s possible to add one starter with some db, and it checks, whatever you have already configure DB connection, or not, and if you have it, starter will use this connection (and ever more of this, in starter possible to check if class exists and make add configuration depend on it). In ktor you need to do all this by yourself. This is just one of simplest example. I like ktor, it’s very good designed library, and well suited for many projects. But for big project Spring is still more preferred.