In this paper, we first improve the boundary Schwarz lemma for holomorphic self-mappings of the unit ball Bn , and then we establish the boundary Schwarz lemma for harmonic self-mappings of the unit disk D and pluriharmonic self-mappings of Bn. The results are sharp and coincides with the classical boundary Schwarz lemma when n = 1.