Yep! In WW1, Imperial Germany was just as good/bad as the other imperial powers wanting more territory, power, influence, resources, et cetera. They lost.Right, so in WWI, Germany played the role of an imperial power butting heads with other imperial powers, hoping to get a bigger piece of the pie and reaping only sorrow.
In WWII, it was more of a fanatical revanchism, spurred by socioeconomic catastrophe and kept afloat by death cult propaganda and a totalitarian/police state.
Now, Germany appears to have been convinced that the path to power in the 21st century is to play the peaceful political/economic game. Sign up with the EU, try to be the biggest fish in the Euro-pond, and try to make the pond bigger (grow the EU). As long as the US Navy keeps oceanic trade open, and as long as NATO is a reliable safeguard for its European members, it seems like a plan worth sticking to.
If anything, I'd think that the world wars are examples of Germany being TOO committed to a path it thought would lead to greatness; I'm not sure why you expect it to bail on the current scheme.
The fallout from that loss, however, is what caused the perfect storm for the exact things you said -- one which the average German supported, despite what revisionists like to declare, until things started going pear-shaped for Germany mid--late War.
Germany is taking a diplomatic route this time, and it's sort-of working -- "everyone wins" except when they don't, and that's when the ugly side of the EU comes out.
Like during the Pandemic? Italy asked for help. Germany and France basically said "sucks to be you, sucker!".