I doubt that a hello world could meaningfully compare the two.
What about a complex web app with many more http endpoints? Some of them having parameters that should be queried from, validated and converted from the URL? It is still the same amount of lines in Spring. Declerative does win in my opinion in this case.