The order of magnitude of the economic burden of war is comparable to that of other ‘global public bads’, such as climate change, land degradation, alcohol cons
isdc.org
The study shows huge global disparities in how the costs of conflict are distributed (see Figure 1). Developing countries were hit hardest by violent conflict, while most high-income countries benefited from their external participation; thereby exaggerating global imbalances. Countries that fight wars far away from home benefit economically from their domestic military spending, while causing damage to foreign territories.
WWII is usually the case study that people cite, arguing that it assisted in pulling the US out of the Depression and setting it up for economic boom in the post-war years.
World War II transformed the United States from a midlevel global power to the leader of the “free world.” With this rapid rise in power and influence, the United States had to take on new responsibilities, signaling the beginning of the "American era."
www.nationalww2museum.org
The argument isn't that contributing to a war on or between other countries is the
best decision for a national economy, the argument is that it
can be good for a national economy. Of course strategically investing in productivity with the aim of growth is better, that's self-evident. Secondly, contributing to wars are not
always beneficial to the national economy; Vietnam was not a net gain for the US, but that was likely due to the way the economy was managed more than anything else.