Spring is a single-file deployment and apt install openjdk, while django needs a venv or a whole container, dependency installs on the host etc. it's not even a contest.