Economic interdependence is also a big factor. If you depend on someone selling you things or buying them from you, you have a lot more to lose by invading them.
It has some truth to it, but it doesn't survive looking at European history. In 1913 Germany and Britain were each other's largest trading partners, but a year later they ended up fighting each other in WWI. They fought again in WWII. Nuclear deterrence is a better explanation of post-WWII peace.
That's the Capitalist peace theory, proposed in 1795 https://en.wikipedia.org/wiki/Capitalist_peace_theory
It has some truth to it, but it doesn't survive looking at European history. In 1913 Germany and Britain were each other's largest trading partners, but a year later they ended up fighting each other in WWI. They fought again in WWII. Nuclear deterrence is a better explanation of post-WWII peace.