Hydroxyapatite coating of AZ31 magnesium alloy by a solution treatment and its corrosion behavior in NaCl solution