War boosts an economy by providing jobs to those who do not go to war and creates more jobs to help the war. Therefore, the unemployment rate goes down.
However a war hurts an economy by damaging land, killing people, and severing ties between possible allies.