Correct, but if Germany wants to be a leader of a pan-EU army it needs to be a dominant military power in the region (for example the US globally, or Turkey in the East Mediterranean, or what Egypt/Libya used to be in the Middle East before the US decided to regime change them). Else you just get political squabbling because the various states have equal power and nothing gets done.
I'm not saying social spending is bad, just that if playing a lead role in a pan-EU army is Germany's interest then it needs to spend more.