The Treaty of Versailles was to stop any further World Wars and to punish Germany for what she had apparently started.
Personally I think the Treaty was harsh and totally out of order on Germany because the treaty had clauses on it they did not even apply to Germany. For Example: Germany had to except total war guilt for a war they didn’t even start.
Other clauses on the treaty stated that any country had the right to pass through Germany for transportation. Germany’s Naval, Military had been restricted