A garrisoned soldier in a barracks will heal, as long as there is enough food.
A civilian will go to their home to heal, as long as they have a home, and there is enough food.