This configuration can be found in almost all LM117 manufacturer's manuals. This circuit, specifically for a current of 1.2 A, is from the Motorola Linear Databook of 1990. The MPS2222 is equivalent to the 2N2222.