How did germany gain such military strength before World War 2?

Brilliant leadership, patriotism, and the large population of Germany.